aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2011-02-16 23:30:03 +0100
committerJohannes Schickel2011-02-16 23:30:03 +0100
commitb5d1c669158951d4ea1633d3c10c58729d28fda5 (patch)
tree91ef832eabf3198736979bbd359247ebec1dafdf /engines/kyra
parentbfcf0e85b4b1c5cdd18c710460884e6f39bd8086 (diff)
downloadscummvm-rg350-b5d1c669158951d4ea1633d3c10c58729d28fda5.tar.gz
scummvm-rg350-b5d1c669158951d4ea1633d3c10c58729d28fda5.tar.bz2
scummvm-rg350-b5d1c669158951d4ea1633d3c10c58729d28fda5.zip
KYRA: Set type for NULL MIDI driver to PC Speaker.
This avoids a dialog about MT-32 to General MIDI conversion shown when running Kyrandia 1. Formerly the NULL MIDI output type was set to General MIDI, which caused the aforementioned dialog to show up, because Kyrandia 1 has no General MIDI tracks.
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/kyra_v1.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/kyra_v1.cpp b/engines/kyra/kyra_v1.cpp
index fec37dccc9..3a5d21196b 100644
--- a/engines/kyra/kyra_v1.cpp
+++ b/engines/kyra/kyra_v1.cpp
@@ -129,10 +129,11 @@ Common::Error KyraEngine_v1::init() {
_sound = new SoundAdLibPC(this, _mixer);
} else {
Sound::kType type;
+ const MusicType midiType = MidiDriver::getMusicType(dev);
- if (MidiDriver::getMusicType(dev) == MT_PCSPK)
+ if (midiType == MT_PCSPK || midiType == MT_NULL)
type = Sound::kPCSpkr;
- else if (MidiDriver::getMusicType(dev) == MT_MT32 || ConfMan.getBool("native_mt32"))
+ else if (midiType == MT_MT32 || ConfMan.getBool("native_mt32"))
type = Sound::kMidiMT32;
else
type = Sound::kMidiGM;