SCI32: Fix volume config when changing volume from in-game Phant2 controls

This commit is contained in:
Colin Snover 2017-09-08 22:47:32 -05:00
parent 936c0bb2cd
commit 14b3ed6414

View File

@ -1081,7 +1081,9 @@ void GuestAdditions::syncAudioVolumeGlobalsToScummVM(const int index, const reg_
case GID_PHANTASMAGORIA2:
if (index == kGlobalVarPhant2MasterVolume) {
const int16 masterVolume = value.toSint16() * Audio::Mixer::kMaxMixerVolume / Audio32::kMaxVolume;
ConfMan.setInt("music_volume", masterVolume);
ConfMan.setInt("sfx_volume", masterVolume);
ConfMan.setInt("speech_volume", masterVolume);
}
break;