VirtualBox

Ignore:
Timestamp:
Jun 17, 2021 11:03:19 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145220
Message:

Audio: Made PDMAUDIOVOLUME multichannel. bugref:9890

File:
1 edited

Legend:

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

    r89377 r89768  
    794794     * 1) Full volume/0dB attenuation (255).
    795795     */
    796     PDMAUDIOVOLUME Vol;
    797     Vol.fMuted = false;
    798     Vol.uLeft  = 255;
    799     Vol.uRight = 255;
     796    PDMAUDIOVOLUME Vol = PDMAUDIOVOLUME_INITIALIZER_MAX;
    800797    AudioMixBufSetVolume(&MixBuf, &Vol);
    801798
     
    826823     * 2) Half volume/-6dB attenuation (16 steps down).
    827824     */
    828     Vol.uLeft  = 255 - 16;
    829     Vol.uRight = 255 - 16;
     825    PDMAudioVolumeInitFromStereo(&Vol, false, 255 - 16, 255 - 16);
    830826    AudioMixBufSetVolume(&MixBuf, &Vol);
    831827
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