mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
SCI32: Fix volume config when changing volume from in-game Phant2 controls
This commit is contained in:
parent
936c0bb2cd
commit
14b3ed6414
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user