mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-03 02:08:29 +00:00
dmsynth: Reset synthesizer defaults on MIDI_SYSTEM_RESET.
This commit is contained in:
parent
051418c0c0
commit
8f3980fc85
|
@ -1125,7 +1125,9 @@ static HRESULT WINAPI synth_Render(IDirectMusicSynth8 *iface, short *buffer,
|
|||
|
||||
TRACE("status %#x chan %#x midi %#x %#x\n", status, chan, event->midi[1], event->midi[2]);
|
||||
|
||||
switch (status)
|
||||
if (event->midi[0] == MIDI_SYSTEM_RESET)
|
||||
synth_reset_default_values(This);
|
||||
else switch (status)
|
||||
{
|
||||
case MIDI_NOTE_OFF:
|
||||
fluid_synth_noteoff(This->fluid_synth, chan, event->midi[1]);
|
||||
|
|
Loading…
Reference in a new issue