Changeset 80686 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Sep 10, 2019 7:54:05 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r80500 r80686 746 746 pStreamDS->cbBufSize = bc.dwBufferBytes; 747 747 748 rc = RTCircBufCreate(&pStreamDS->pCircBuf, pStreamDS->cbBufSize ) * 2; /* Use "double buffering" */748 rc = RTCircBufCreate(&pStreamDS->pCircBuf, pStreamDS->cbBufSize * 2 /* Use "double buffering" */); 749 749 AssertRC(rc); 750 750 … … 1227 1227 && pStreamDS->In.cOverruns < 32) /** @todo Make this configurable. */ 1228 1228 { 1229 DSLOG(("DSound: Warning: Ring buffer full, skipping to record data (overflow #%RU32)\n", pStreamDS->In.cOverruns)); 1230 DSLOG(("DSound: DSound capture buffer currently uses %RU32/%RU32 bytes\n", cbUsed, pStreamDS->cbBufSize)); 1229 DSLOG(("DSound: Warning: Internal buffer full (size is %zu bytes), skipping to record data (overflow #%RU32)\n", 1230 RTCircBufSize(pCircBuf), pStreamDS->In.cOverruns)); 1231 DSLOG(("DSound: Warning: DSound capture buffer currently uses %RU32/%RU32 bytes\n", cbUsed, pStreamDS->cbBufSize)); 1231 1232 pStreamDS->In.cOverruns++; 1232 1233 } … … 1491 1492 pStreamDS->cbBufSize = bc.dwBufferBytes; 1492 1493 1493 rc = RTCircBufCreate(&pStreamDS->pCircBuf, pStreamDS->cbBufSize ) * 2; /* Use "double buffering". */1494 rc = RTCircBufCreate(&pStreamDS->pCircBuf, pStreamDS->cbBufSize * 2 /* Use "double buffering" */); 1494 1495 AssertRC(rc); 1495 1496
Note:
See TracChangeset
for help on using the changeset viewer.