Changeset 73656 in vbox
- Timestamp:
- Aug 14, 2018 1:04:14 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp
r73654 r73656 771 771 pCfgAcq->Props.cShift = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfgAcq->Props.cBytes, pCfgAcq->Props.cChannels); 772 772 773 uint32_t cbBuf = RT_MIN(pStreamPA->BufAttr.tlength * 2,774 pStreamPA->BufAttr.maxlength); /** @todo Make this configurable! */775 776 773 LogFunc(("Acquired: BufAttr tlength=%RU32, maxLength=%RU32, minReq=%RU32\n", 777 774 pStreamPA->BufAttr.tlength, pStreamPA->BufAttr.maxlength, pStreamPA->BufAttr.minreq)); 778 775 779 if (cbBuf) 780 { 781 pCfgAcq->Backend.cfPeriod = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.minreq); 782 pCfgAcq->Backend.cfBufferSize = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.tlength * 2); /* Use "double buffering". */ 783 pCfgAcq->Backend.cfPreBuf = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.prebuf); 784 785 pStreamPA->pDrv = pThis; 786 } 787 else 788 rc = VERR_INVALID_PARAMETER; 776 pCfgAcq->Backend.cfPeriod = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.minreq); 777 pCfgAcq->Backend.cfBufferSize = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.tlength); 778 pCfgAcq->Backend.cfPreBuf = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.prebuf); 779 780 pStreamPA->pDrv = pThis; 789 781 790 782 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.