aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/input.cpp
diff options
context:
space:
mode:
authorTravis Howell2007-06-07 02:43:03 +0000
committerTravis Howell2007-06-07 02:43:03 +0000
commitf0acfc0a28530c00eb285389e37428347a1ad57f (patch)
treeee65da6d9cffe98873014d3998d5ff84c9fad4e8 /engines/agos/input.cpp
parent8bcf073444813366e15989e08941bd993914c85d (diff)
downloadscummvm-rg350-f0acfc0a28530c00eb285389e37428347a1ad57f.tar.gz
scummvm-rg350-f0acfc0a28530c00eb285389e37428347a1ad57f.tar.bz2
scummvm-rg350-f0acfc0a28530c00eb285389e37428347a1ad57f.zip
Limit MIDI driver, to games using MIDI music only.
svn-id: r27158
Diffstat (limited to 'engines/agos/input.cpp')
-rw-r--r--engines/agos/input.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp
index 0d5a185026..274914b407 100644
--- a/engines/agos/input.cpp
+++ b/engines/agos/input.cpp
@@ -558,26 +558,22 @@ bool AGOSEngine::processSpecialKeys() {
_speech ^= 1;
}
case '+':
- if ((getPlatform() == Common::kPlatformAcorn && (getFeatures() & GF_TALKIE)) ||
- getPlatform() == Common::kPlatformPC || getPlatform() == Common::kPlatformWindows) {
+ if (_midiEnabled) {
_midi.setVolume(_midi.getVolume() + 16);
}
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) + 16);
break;
case '-':
- if ((getPlatform() == Common::kPlatformAcorn && (getFeatures() & GF_TALKIE)) ||
- getPlatform() == Common::kPlatformPC || getPlatform() == Common::kPlatformWindows) {
+ if (_midiEnabled) {
_midi.setVolume(_midi.getVolume() - 16);
}
_mixer->setVolumeForSoundType(Audio::Mixer::kMusicSoundType, _mixer->getVolumeForSoundType(Audio::Mixer::kMusicSoundType) - 16);
break;
case 'm':
- if ((getPlatform() == Common::kPlatformAcorn && (getFeatures() & GF_TALKIE)) ||
- getPlatform() == Common::kPlatformPC || getPlatform() == Common::kPlatformWindows) {
+ if (_midiEnabled) {
_midi.pause(_musicPaused ^= 1);
- } else {
- // TODO
}
+ // TODO
break;
case 's':
if (getGameId() == GID_SIMON1DOS) {