VCRUISE: Fix incorrect volume ramping behavior on 3D sounds

This commit is contained in:
elasota 2023-03-16 00:59:38 -04:00
parent 5a7bfc3954
commit 116a3be86b

View File

@ -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);
}
}
}
}