mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-11-27 06:02:28 +00:00
Added a GS DT1 MODE SET SysEx message after GM System Enable SysEx message to instruct the synth to switch to GS mode, if one is supported.
This commit is contained in:
parent
3eabbd3598
commit
7476a18975
1 changed files with 10 additions and 1 deletions
|
@ -815,7 +815,7 @@ int MIDIStreamer::FillBuffer(int buffer_num, int max_events, uint32_t max_time)
|
||||||
if (InitialPlayback)
|
if (InitialPlayback)
|
||||||
{
|
{
|
||||||
InitialPlayback = false;
|
InitialPlayback = false;
|
||||||
// Send the GS System Reset SysEx message.
|
// Send the GM System Enable SysEx message.
|
||||||
events[0] = 0; // dwDeltaTime
|
events[0] = 0; // dwDeltaTime
|
||||||
events[1] = 0; // dwStreamID
|
events[1] = 0; // dwStreamID
|
||||||
events[2] = (MEVENT_LONGMSG << 24) | 6; // dwEvent
|
events[2] = (MEVENT_LONGMSG << 24) | 6; // dwEvent
|
||||||
|
@ -823,6 +823,15 @@ int MIDIStreamer::FillBuffer(int buffer_num, int max_events, uint32_t max_time)
|
||||||
events[4] = MAKE_ID(0x01, 0xf7, 0x00, 0x00); // dwParms[1]
|
events[4] = MAKE_ID(0x01, 0xf7, 0x00, 0x00); // dwParms[1]
|
||||||
events += 5;
|
events += 5;
|
||||||
|
|
||||||
|
// Send the GS DT1 MODE SET GS Reset SysEx message.
|
||||||
|
events[0] = 0; // dwDeltaTime
|
||||||
|
events[1] = 0; // dwStreamID
|
||||||
|
events[2] = (MEVENT_LONGMSG << 24) | 11; // dwEvent
|
||||||
|
events[3] = MAKE_ID(0xf0, 0x41, 0x7f, 0x42); // dwParms[0]
|
||||||
|
events[4] = MAKE_ID(0x12, 0x40, 0x00, 0x7f); // dwParms[1]
|
||||||
|
events[5] = MAKE_ID(0x00, 0x41, 0xf7, 0x00); // dwParms[2]
|
||||||
|
events += 6;
|
||||||
|
|
||||||
// Send the full master volume SysEx message.
|
// Send the full master volume SysEx message.
|
||||||
events[0] = 0; // dwDeltaTime
|
events[0] = 0; // dwDeltaTime
|
||||||
events[1] = 0; // dwStreamID
|
events[1] = 0; // dwStreamID
|
||||||
|
|
Loading…
Reference in a new issue