mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
KYRA: Send GM reset on startup.
svn-id: r52737
This commit is contained in:
parent
6588398ce6
commit
b9a74a7915
@ -134,10 +134,14 @@ MidiOutput::MidiOutput(OSystem *system, MidiDriver *output, bool isMT32, bool de
|
||||
static const byte sysEx2[] = { 3, 4, 3, 4, 3, 4, 3, 4, 4 };
|
||||
static const byte sysEx3[] = { 0, 3, 2 };
|
||||
|
||||
sendSysEx(0x7F, 0x00, 0x00, sysEx1, 1);
|
||||
sendSysEx(0x10, 0x00, 0x0D, sysEx1, 9);
|
||||
sendSysEx(0x10, 0x00, 0x04, sysEx2, 9);
|
||||
sendSysEx(0x10, 0x00, 0x01, sysEx3, 3);
|
||||
if (_isMT32) {
|
||||
sendSysEx(0x7F, 0x00, 0x00, sysEx1, 1);
|
||||
sendSysEx(0x10, 0x00, 0x0D, sysEx1, 9);
|
||||
sendSysEx(0x10, 0x00, 0x04, sysEx2, 9);
|
||||
sendSysEx(0x10, 0x00, 0x01, sysEx3, 3);
|
||||
} else {
|
||||
_output->sendGMReset();
|
||||
}
|
||||
|
||||
memset(_channels, 0, sizeof(_channels));
|
||||
for (int i = 0; i < 16; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user