diff options
author | Travis Howell | 2007-02-27 11:47:28 +0000 |
---|---|---|
committer | Travis Howell | 2007-02-27 11:47:28 +0000 |
commit | 7380142071945e08c3fd2e81e5b0b9e16c284572 (patch) | |
tree | b7a0387bca4e959368b91ff26cccb72dde258e02 /engines/agos | |
parent | 235aa3376bdd164d7f1426ad7e683479283d405d (diff) | |
download | scummvm-rg350-7380142071945e08c3fd2e81e5b0b9e16c284572.tar.gz scummvm-rg350-7380142071945e08c3fd2e81e5b0b9e16c284572.tar.bz2 scummvm-rg350-7380142071945e08c3fd2e81e5b0b9e16c284572.zip |
Change the volume of music channel of mixer, when adjusting music volume too.
svn-id: r25894
Diffstat (limited to 'engines/agos')
-rw-r--r-- | engines/agos/input.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp index a17dacfda7..93e914d8a4 100644 --- a/engines/agos/input.cpp +++ b/engines/agos/input.cpp @@ -549,9 +549,11 @@ bool AGOSEngine::processSpecialKeys() { } case '+': midi.setVolume(midi.getVolume() + 16); + _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) + 16); break; case '-': midi.setVolume(midi.getVolume() - 16); + _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) - 16); break; case 'm': midi.pause(_musicPaused ^= 1); |