diff options
author | Travis Howell | 2007-06-10 05:43:56 +0000 |
---|---|---|
committer | Travis Howell | 2007-06-10 05:43:56 +0000 |
commit | 3cd6c3c2758e4447622663399d3eb39be15e5189 (patch) | |
tree | da1aa9c5ca37f613b15cb6b4f795bd217d8a4a86 /engines | |
parent | 3d37cdabdee6a94802aa202ebd0ab6652e13da1d (diff) | |
download | scummvm-rg350-3cd6c3c2758e4447622663399d3eb39be15e5189.tar.gz scummvm-rg350-3cd6c3c2758e4447622663399d3eb39be15e5189.tar.bz2 scummvm-rg350-3cd6c3c2758e4447622663399d3eb39be15e5189.zip |
Fix toggling music on/off in games, when using non-MIDI music.
svn-id: r27282
Diffstat (limited to 'engines')
-rw-r--r-- | engines/agos/input.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp index b4f8232057..4a0cd03664 100644 --- a/engines/agos/input.cpp +++ b/engines/agos/input.cpp @@ -25,6 +25,7 @@ #include "common/stdafx.h" +#include "common/config-manager.h" #include "common/file.h" #include "agos/intern.h" @@ -578,10 +579,11 @@ bool AGOSEngine::processSpecialKeys() { _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) - 16); break; case 'm': + _musicPaused ^= 1; if (_midiEnabled) { - _midi.pause(_musicPaused ^= 1); + _midi.pause(_musicPaused); } - // TODO + _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, (_musicPaused) ? 0 : ConfMan.getInt("music_volume")); break; case 's': if (getGameId() == GID_SIMON1DOS) { |