Suppress junk noise at startup of DirectSound on SB Live! and ES 1371.

This commit is contained in:
Marcus Meissner 2000-10-12 20:37:51 +00:00 committed by Alexandre Julliard
parent aef9a36059
commit 0d30481a31

View File

@ -1195,6 +1195,9 @@ static HRESULT DSDB_MapPrimary(IDsDriverBufferImpl *dsdb)
return DSERR_GENERIC;
}
TRACE("(%p): sound device has been mapped for direct access at %p, size=%ld\n", dsdb, wwo->mapping, wwo->maplen);
/* for some reason, es1371 and sblive! sometimes have junk in here. */
memset(wwo->mapping,0,wwo->maplen); /* clear it, or we get junk noise */
}
return DS_OK;
}