From 3cd6c3c2758e4447622663399d3eb39be15e5189 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 10 Jun 2007 05:43:56 +0000 Subject: Fix toggling music on/off in games, when using non-MIDI music. svn-id: r27282 --- engines/agos/input.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/agos/input.cpp') 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) { -- cgit v1.2.3