mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
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:
parent
808e36541e
commit
663a606602
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user