aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sound_midi.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-08-24 12:41:56 +0000
committerEugene Sandulenko2010-08-24 12:41:56 +0000
commit663a606602c697cd1c8b1f510e062e62d39ed55f (patch)
treeafebffc622fcaf13a5da8008706f149efd3efd8a /engines/agi/sound_midi.cpp
parent808e36541e306c3bb77bb8748b4dc6f40ad3c796 (diff)
downloadscummvm-rg350-663a606602c697cd1c8b1f510e062e62d39ed55f.tar.gz
scummvm-rg350-663a606602c697cd1c8b1f510e062e62d39ed55f.tar.bz2
scummvm-rg350-663a606602c697cd1c8b1f510e062e62d39ed55f.zip
AGI: Fix bug #3017908: "AGI: No music with the new MIDI patch"
Fixed by performing proper MIDI initialization. svn-id: r52332
Diffstat (limited to 'engines/agi/sound_midi.cpp')
-rw-r--r--engines/agi/sound_midi.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/agi/sound_midi.cpp b/engines/agi/sound_midi.cpp
index 57c5d54b27..840538b92b 100644
--- a/engines/agi/sound_midi.cpp
+++ b/engines/agi/sound_midi.cpp
@@ -121,6 +121,12 @@ int SoundGenMIDI::open() {
return ret;
_driver->setTimerCallback(this, &onTimer);
+
+ // General MIDI System On message
+ // Resets all GM devices to default settings
+ _driver->sysEx((const byte *)"\x7E\x7F\x09\x01", 4);
+ g_system->delayMillis(20);
+
return 0;
}