aboutsummaryrefslogtreecommitdiff
path: root/engines/agos
diff options
context:
space:
mode:
authorChristopher Page2008-08-16 22:42:19 +0000
committerChristopher Page2008-08-16 22:42:19 +0000
commitd370c8eedda98c1bd1601844cf2c91c559bce49d (patch)
treed10e7e363eb5a71c0a17493c8929ee6218603475 /engines/agos
parent370cc6615e5700c31c7b9dae49e19b0573cdee62 (diff)
downloadscummvm-rg350-d370c8eedda98c1bd1601844cf2c91c559bce49d.tar.gz
scummvm-rg350-d370c8eedda98c1bd1601844cf2c91c559bce49d.tar.bz2
scummvm-rg350-d370c8eedda98c1bd1601844cf2c91c559bce49d.zip
Agos volume levels changed by the keyboard correspond now sync with the config manager
svn-id: r33954
Diffstat (limited to 'engines/agos')
-rw-r--r--engines/agos/input.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp
index 689dee610a..4327c2878d 100644
--- a/engines/agos/input.cpp
+++ b/engines/agos/input.cpp
@@ -565,14 +565,16 @@ bool AGOSEngine::processSpecialKeys() {
if (_midiEnabled) {
_midi.setVolume(_midi.getMusicVolume() + 16, _midi.getSFXVolume() + 16);
}
- _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) + 16);
+ ConfMan.setInt("music_volume", _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) + 16);
+ syncSoundSettings();
break;
case Common::KEYCODE_MINUS:
case Common::KEYCODE_KP_MINUS:
if (_midiEnabled) {
_midi.setVolume(_midi.getMusicVolume() - 16, _midi.getSFXVolume() - 16);
}
- _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) - 16);
+ ConfMan.setInt("music_volume", _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) - 16);
+ syncSoundSettings();
break;
case Common::KEYCODE_m:
_musicPaused ^= 1;