AGI: Fix bug #3017908: "AGI: No music with the new MIDI patch"

Fixed by performing proper MIDI initialization.

svn-id: r52332
This commit is contained in:
Eugene Sandulenko 2010-08-24 12:41:56 +00:00
parent 808e36541e
commit 663a606602

View File

@ -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;
}