aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
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;