From 65ed7e775e51f864897ccdd578b54423ab79aa6e Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Mon, 4 May 2015 17:30:07 +0100 Subject: 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). --- engines/agi/sound_pcjr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/agi') diff --git a/engines/agi/sound_pcjr.cpp b/engines/agi/sound_pcjr.cpp index 3654b97e78..0dce276e33 100644 --- a/engines/agi/sound_pcjr.cpp +++ b/engines/agi/sound_pcjr.cpp @@ -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; } -- cgit v1.2.3