VirtualBox

Changeset 73559 in vbox for trunk/src


Ignore:
Timestamp:
Aug 8, 2018 11:48:33 AM (6 years ago)
Author:
vboxsync
Message:

Audio/DrvAudio: Use DrvAudioHlpClearBuf() instead of RT_BZERO when returning silence in drvAudioStreamRead().

File:
1 edited

Legend:

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

    r73558 r73559  
    23202320        if (!pThis->In.fEnabled)
    23212321        {
    2322             RT_BZERO(pvBuf, cbBuf);
     2322            /* If the stream is not enabled, return silence. */
     2323            DrvAudioHlpClearBuf(&pStream->Guest.Cfg.Props, pvBuf, cbBuf,
     2324                                PDMAUDIOPCMPROPS_B2F(&pStream->Guest.Cfg.Props, cbBuf));
    23232325            cbReadTotal = cbBuf;
    23242326            break;
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