mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
AGI: Fix bug with music/SFX volume in PCjr
A higher volume in the GUI resulted in a lower music volume (and lower volume in the GUI resulted in higher music volume).
This commit is contained in:
parent
8e4c672d38
commit
65ed7e775e
@ -207,7 +207,7 @@ int SoundGenPCJr::volumeCalc(SndGenChan *chan) {
|
||||
chan->attenuationCopy = attenuation;
|
||||
|
||||
attenuation &= 0x0F;
|
||||
attenuation += _mixer->getVolumeForSoundType(Audio::Mixer::kSFXSoundType) / 17;
|
||||
attenuation += (16 - _mixer->getVolumeForSoundType(Audio::Mixer::kSFXSoundType) / 17);
|
||||
if (attenuation > 0x0F)
|
||||
attenuation = 0x0F;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user