VirtualBox

Changeset 88161 in vbox


Ignore:
Timestamp:
Mar 17, 2021 4:43:36 PM (4 years ago)
Author:
vboxsync
Message:

DrvHostPulseAudio.cpp: Another attempt at fixing bogus pCfgAcq->Backend.cFramesBufferSize assignment in paCreateStreamIn (probably harmless). bugref:9890

File:
1 edited

Legend:

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

    r88156 r88161  
    877877
    878878    pCfgAcq->Backend.cFramesPeriod       = PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.fragsize);
    879     pCfgAcq->Backend.cFramesBufferSize   = pCfgAcq->Backend.cFramesPeriod;
     879    pCfgAcq->Backend.cFramesBufferSize   = pStreamPA->BufAttr.maxlength != UINT32_MAX /* paranoia */
     880                                         ? PDMAUDIOSTREAMCFG_B2F(pCfgAcq, pStreamPA->BufAttr.maxlength)
     881                                         : pCfgAcq->Backend.cFramesPeriod * 2 /* whatever */;
    880882    pCfgAcq->Backend.cFramesPreBuffering = pCfgAcq->Backend.cFramesPeriod;
    881883
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