VirtualBox

Ignore:
Timestamp:
Sep 30, 2021 8:17:37 AM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: Only do volume calculation once. ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkatDriverStack.cpp

    r91451 r91488  
    15681568    AssertReturnVoid(pMix->fDoMixing);
    15691569
     1570    uint8_t const uVol = (PDMAUDIO_VOLUME_MAX / 100) * uVolumePercent;
     1571
    15701572    PDMAUDIOVOLUME Vol;
    15711573    RT_ZERO(Vol);
    15721574    for (size_t i = 0; i < RT_ELEMENTS(Vol.auChannels); i++)
    1573         Vol.auChannels[i] = (PDMAUDIO_VOLUME_MAX / 100) * uVolumePercent;
     1575        Vol.auChannels[i] = uVol;
    15741576    AudioMixBufSetVolume(&pMix->MixBuf, &Vol);
    15751577}
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