mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
69629944e5
The engine used the plain sound type for sampled sound effects and movie audio and applied the SFX user volume control to the plain sound type. This caused emulators like the AdLib emulator and Munt to be affected by the SFX user volume control, because they use the plain sound type. This commit fixes this by using the SFX sound type instead of the plain sound type. User volume is applied by Engine::syncSoundSettings. This commit also fixes the setSoundVolume script function. Volume was previously applied to the SFX and speech sound types, which were not used. Also, by directly using Mixer::setVolumeForSoundType, it would override the user volume setting. This is fixed by storing the game sound volume in a field and applying this to the current and future audio streams. This fixes bug #6444.