VirtualBox

Changeset 73656 in vbox


Ignore:
Timestamp:
Aug 14, 2018 1:04:14 PM (6 years ago)
Author:
vboxsync
Message:

Audio/PulseAudio: D'oh, follow-up to messed up commit r124328 ("Double buffering" not needed here; logging tweak for underruns).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvHostPulseAudio.cpp

    r73654 r73656  
    771771    pCfgAcq->Props.cShift    = PDMAUDIOPCMPROPS_MAKE_SHIFT_PARMS(pCfgAcq->Props.cBytes, pCfgAcq->Props.cChannels);
    772772
    773     uint32_t cbBuf = RT_MIN(pStreamPA->BufAttr.tlength * 2,
    774                             pStreamPA->BufAttr.maxlength); /** @todo Make this configurable! */
    775 
    776773    LogFunc(("Acquired: BufAttr tlength=%RU32, maxLength=%RU32, minReq=%RU32\n",
    777774             pStreamPA->BufAttr.tlength, pStreamPA->BufAttr.maxlength, pStreamPA->BufAttr.minreq));
    778775
    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;
    789781
    790782    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette