mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-23 12:04:38 -04:00
Fix Windows native MIDI level transitions (#706)
This commit is contained in:
parent
2ef303abb0
commit
01b068e4e6
@ -440,6 +440,26 @@ static void I_WIN_StopSong(void *handle)
|
||||
midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
|
||||
msg = MIDI_EVENT_CONTROLLER | i | 0x65 << 8 | 0x7F << 16;
|
||||
midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
|
||||
|
||||
// reset all controllers
|
||||
msg = MIDI_EVENT_CONTROLLER | i | 0x79 << 8 | 0x00 << 16;
|
||||
midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
|
||||
|
||||
// reset pan to 64 (center)
|
||||
msg = MIDI_EVENT_CONTROLLER | i | 0x0A << 8 | 0x40 << 16;
|
||||
midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
|
||||
|
||||
// reset reverb to 40 and other effect controllers to 0
|
||||
msg = MIDI_EVENT_CONTROLLER | i | 0x5B << 8 | 0x28 << 16; // reverb
|
||||
midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
|
||||
msg = MIDI_EVENT_CONTROLLER | i | 0x5C << 8 | 0x00 << 16; // tremolo
|
||||
midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
|
||||
msg = MIDI_EVENT_CONTROLLER | i | 0x5D << 8 | 0x00 << 16; // chorus
|
||||
midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
|
||||
msg = MIDI_EVENT_CONTROLLER | i | 0x5E << 8 | 0x00 << 16; // detune
|
||||
midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
|
||||
msg = MIDI_EVENT_CONTROLLER | i | 0x5F << 8 | 0x00 << 16; // phaser
|
||||
midiOutShortMsg((HMIDIOUT)hMidiStream, msg);
|
||||
}
|
||||
|
||||
mmr = midiStreamStop(hMidiStream);
|
||||
|
Loading…
x
Reference in New Issue
Block a user