VirtualBox

Changeset 76708 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Jan 8, 2019 3:36:15 PM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Added a buffer underrun detection (also with optional release logging) for output streams.

File:
1 edited

Legend:

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

    r76706 r76708  
    14531453                  DrvAudioHlpFramesToMilli(cfLive, &pStream->Host.Cfg.Props), uLivePercent, pStream->fThresholdReached));
    14541454
    1455         /* Has the treshold been reached (e.g. are we in playing stage) and we now have less live samples
    1456          * then time which has been passed? Then enter the buffering stage again. */
     1455        /* Has the treshold been reached (e.g. are we in playing stage) and we now have no live samples to process? */
    14571456        if (   pStream->fThresholdReached
    1458             && cfLive < cfPassedReal)
     1457            && cfLive == 0)
    14591458        {
    14601459            LogRel2(("Audio: Buffer underrun for stream '%s' occurred (%RU64ms passed but only %RU64ms in buffer)\n",
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