Changeset 73692 in vbox for trunk/src/VBox
- Timestamp:
- Aug 15, 2018 1:27:59 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostDSound.cpp
r73689 r73692 765 765 pThis->pDSStrmOut = pStreamDS; 766 766 767 pCfgAcq->Backend.cfBufferSize = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamDS->cbBufSize); 768 pCfgAcq->Backend.cfPeriod = pCfgAcq->Backend.cfBufferSize / 2; 769 pCfgAcq->Backend.cfPreBuf = pCfgAcq->Backend.cfBufferSize; 767 const uint32_t cfBufSize = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamDS->cbBufSize); 768 if (cfBufSize != pCfgAcq->Backend.cfBufferSize) 769 { 770 pCfgAcq->Backend.cfBufferSize = cfBufSize; 771 pCfgAcq->Backend.cfPeriod = cfBufSize / 4; 772 pCfgAcq->Backend.cfPreBuf = pCfgAcq->Backend.cfPeriod * 2; 773 } 770 774 771 775 } while (0);
Note:
See TracChangeset
for help on using the changeset viewer.