Changeset 88219 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Mar 21, 2021 1:54:04 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 143384
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvAudio.cpp
r88216 r88219 1609 1609 { 1610 1610 uint32_t cfWritable = PDMAUDIOPCMPROPS_B2F(&pStream->Host.Cfg.Props, 1611 pThis->pHostDrvAudio->pfnStreamGetWritable(pThis->pHostDrvAudio, pStream->pvBackend)); 1611 pThis->pHostDrvAudio->pfnStreamGetWritable(pThis->pHostDrvAudio, 1612 pStream->pvBackend)); 1612 1613 1613 1614 uint32_t cfToPlay = 0; … … 1619 1620 /* Did we reach/pass (in real time) the device scheduling slot? 1620 1621 * Play as much as we can write to the backend then. */ 1621 if (cfPassedReal >= PDMAudioPropsMilliToFrames(&pStream->Host.Cfg.Props, pStream->Guest.Cfg.Device.cMsSchedulingHint)) 1622 if (cfPassedReal >= PDMAudioPropsMilliToFrames(&pStream->Host.Cfg.Props, 1623 pStream->Guest.Cfg.Device.cMsSchedulingHint)) 1622 1624 cfToPlay = cfWritable; 1623 1625 } … … 1625 1627 if (cfToPlay > cFramesLive) /* Don't try to play more than available. */ 1626 1628 cfToPlay = cFramesLive; 1627 #ifdef DEBUG1628 1629 Log3Func(("[%s] Playing %RU32 frames (%RU64ms), now filled with %RU64ms -- %RU8%%\n", 1629 1630 pStream->szName, cfToPlay, PDMAudioPropsFramesToMilli(&pStream->Host.Cfg.Props, cfToPlay), 1630 1631 PDMAudioPropsFramesToMilli(&pStream->Host.Cfg.Props, AudioMixBufUsed(&pStream->Host.MixBuf)), 1631 1632 AudioMixBufUsed(&pStream->Host.MixBuf) * 100 / AudioMixBufSize(&pStream->Host.MixBuf))); 1632 #endif1633 1633 if (cfToPlay) 1634 1634 {
Note:
See TracChangeset
for help on using the changeset viewer.