VirtualBox

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


Ignore:
Timestamp:
Jan 8, 2019 2:07:37 PM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Added another (release) log warning when stuff is misconfigured.

File:
1 edited

Legend:

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

    r76702 r76706  
    628628    LogRel2(("Audio: Period size of stream '%s' is %RU64ms (%RU32 frames)\n",
    629629             pStream->szName, msPeriod, CfgHostAcq.Backend.cfPeriod));
     630
     631    if (   pCfgGuest->Device.uSchedulingHintMs             /* Any scheduling hint set? */
     632        && pCfgGuest->Device.uSchedulingHintMs > msPeriod) /* This might lead to buffer underflows. */
     633    {
     634        LogRel(("Audio: Warning: Scheduling hint of stream '%s' is bigger (%RU64ms) than used period size (%RU64ms)\n",
     635                pStream->szName, pCfgGuest->Device.uSchedulingHintMs, msPeriod));
     636    }
    630637
    631638    /* Destroy any former mixing buffer. */
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