From 663a606602c697cd1c8b1f510e062e62d39ed55f Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 24 Aug 2010 12:41:56 +0000 Subject: AGI: Fix bug #3017908: "AGI: No music with the new MIDI patch" Fixed by performing proper MIDI initialization. svn-id: r52332 --- engines/agi/sound_midi.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- cgit v1.2.3