VirtualBox

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


Ignore:
Timestamp:
Mar 21, 2021 1:54:04 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143384
Message:

DrvAudio: nits. bugref:9890

File:
1 edited

Legend:

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

    r88216 r88219  
    16091609        {
    16101610            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));
    16121613
    16131614            uint32_t cfToPlay = 0;
     
    16191620                /* Did we reach/pass (in real time) the device scheduling slot?
    16201621                 * 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))
    16221624                    cfToPlay = cfWritable;
    16231625            }
     
    16251627            if (cfToPlay > cFramesLive) /* Don't try to play more than available. */
    16261628                cfToPlay = cFramesLive;
    1627 #ifdef DEBUG
    16281629            Log3Func(("[%s] Playing %RU32 frames (%RU64ms), now filled with %RU64ms -- %RU8%%\n",
    16291630                      pStream->szName, cfToPlay, PDMAudioPropsFramesToMilli(&pStream->Host.Cfg.Props, cfToPlay),
    16301631                      PDMAudioPropsFramesToMilli(&pStream->Host.Cfg.Props, AudioMixBufUsed(&pStream->Host.MixBuf)),
    16311632                      AudioMixBufUsed(&pStream->Host.MixBuf) * 100 / AudioMixBufSize(&pStream->Host.MixBuf)));
    1632 #endif
    16331633            if (cfToPlay)
    16341634            {
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