diff options
author | Travis Howell | 2007-06-04 14:25:02 +0000 |
---|---|---|
committer | Travis Howell | 2007-06-04 14:25:02 +0000 |
commit | 64413f9cc8492a3f278575b21927b5ee8ee40ba1 (patch) | |
tree | a3eae07b4e5bb1f86cda6fa5d5f6e2d768c8a333 /engines/agos/input.cpp | |
parent | 6dd52b592e9e9bf09fa558132b16ca25c8fa0b1c (diff) | |
download | scummvm-rg350-64413f9cc8492a3f278575b21927b5ee8ee40ba1.tar.gz scummvm-rg350-64413f9cc8492a3f278575b21927b5ee8ee40ba1.tar.bz2 scummvm-rg350-64413f9cc8492a3f278575b21927b5ee8ee40ba1.zip |
Only call MIDI code, in games which use MIDI based music.
svn-id: r27080
Diffstat (limited to 'engines/agos/input.cpp')
-rw-r--r-- | engines/agos/input.cpp | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp index 3f2efc86b4..0d5a185026 100644 --- a/engines/agos/input.cpp +++ b/engines/agos/input.cpp @@ -558,21 +558,33 @@ bool AGOSEngine::processSpecialKeys() { _speech ^= 1; } case '+': - _midi.setVolume(_midi.getVolume() + 16); + if ((getPlatform() == Common::kPlatformAcorn && (getFeatures() & GF_TALKIE)) || + getPlatform() == Common::kPlatformPC || getPlatform() == Common::kPlatformWindows) { + _midi.setVolume(_midi.getVolume() + 16); + } _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) + 16); break; case '-': - _midi.setVolume(_midi.getVolume() - 16); + if ((getPlatform() == Common::kPlatformAcorn && (getFeatures() & GF_TALKIE)) || + getPlatform() == Common::kPlatformPC || getPlatform() == Common::kPlatformWindows) { + _midi.setVolume(_midi.getVolume() - 16); + } _mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) - 16); break; case 'm': - _midi.pause(_musicPaused ^= 1); + if ((getPlatform() == Common::kPlatformAcorn && (getFeatures() & GF_TALKIE)) || + getPlatform() == Common::kPlatformPC || getPlatform() == Common::kPlatformWindows) { + _midi.pause(_musicPaused ^= 1); + } else { + // TODO + } break; case 's': - if (getGameId() == GID_SIMON1DOS) + if (getGameId() == GID_SIMON1DOS) { _midi._enable_sfx ^= 1; - else + } else { _sound->effectsPause(_effectsPaused ^= 1); + } break; case 'b': _sound->ambientPause(_ambientPaused ^= 1); |