mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-03 01:15:58 +00:00
VCRUISE: Fix incorrect volume ramping behavior on 3D sounds
This commit is contained in:
parent
5a7bfc3954
commit
116a3be86b
@ -1897,8 +1897,11 @@ void Runtime::updateSounds(uint32 timestamp) {
|
||||
|
||||
if (snd.volume != newVolume) {
|
||||
snd.volume = newVolume;
|
||||
if (snd.player)
|
||||
snd.player->setVolume(snd.volume);
|
||||
|
||||
if (snd.player) {
|
||||
computeEffectiveVolumeAndBalance(snd);
|
||||
snd.player->setVolumeAndBalance(snd.effectiveVolume, snd.effectiveBalance);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user