VirtualBox

Changeset 73654 in vbox for trunk/src


Ignore:
Timestamp:
Aug 14, 2018 12:58:43 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
124328
Message:

Audio/PulseAudio: "Double buffering" not needed here; logging tweak for underruns.

File:
1 edited

Legend:

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

    r73529 r73654  
    416416    pStrm->cUnderflows++;
    417417
    418     Log2Func(("Warning: Hit underflow #%RU32\n", pStrm->cUnderflows));
     418    LogRel2(("PulseAudio: Warning: Hit underflow #%RU32\n", pStrm->cUnderflows));
    419419
    420420    if (   pStrm->cUnderflows  >= 6                /** @todo Make this check configurable. */
     
    780780    {
    781781        pCfgAcq->Backend.cfPeriod     = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.minreq);
    782         pCfgAcq->Backend.cfBufferSize = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.tlength);
     782        pCfgAcq->Backend.cfBufferSize = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.tlength * 2); /* Use "double buffering". */
    783783        pCfgAcq->Backend.cfPreBuf     = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.prebuf);
    784784
Note: See TracChangeset for help on using the changeset viewer.

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