From: Anton Baskanov baskanov@gmail.com
--- dlls/dmsynth/synth.c | 3 +++ dlls/dmsynth/tests/dmsynth.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/dmsynth/synth.c b/dlls/dmsynth/synth.c index da614232062..36e53f59617 100644 --- a/dlls/dmsynth/synth.c +++ b/dlls/dmsynth/synth.c @@ -1178,6 +1178,9 @@ static HRESULT WINAPI synth_Render(IDirectMusicSynth8 *iface, short *buffer, fluid_synth_get_program(This->fluid_synth, chan, &sfont_id, &bank_num, &preset_num); fluid_synth_program_select(This->fluid_synth, chan, sfont_id, bank_num, event->midi[1]); break; + case MIDI_CHANNEL_PRESSURE: + fluid_synth_channel_pressure(This->fluid_synth, chan, event->midi[1]); + break; case MIDI_PITCH_BEND_CHANGE: fluid_synth_pitch_bend(This->fluid_synth, chan, event->midi[1] | (event->midi[2] << 7)); break; diff --git a/dlls/dmsynth/tests/dmsynth.c b/dlls/dmsynth/tests/dmsynth.c index 51da06b3f06..07a945ef416 100644 --- a/dlls/dmsynth/tests/dmsynth.c +++ b/dlls/dmsynth/tests/dmsynth.c @@ -2875,7 +2875,7 @@ static void test_dls(void) envelope = default_pitch_envelope; envelope.lfo.freq = 2.; envelope.lfo.scale = 100.; - check_pitch_envelope(synth, &download, &midi, &envelope, TRUE); + check_pitch_envelope(synth, &download, &midi, &envelope, FALSE);
/* LFO -> pitch */
@@ -2974,7 +2974,7 @@ static void test_dls(void) envelope = default_pitch_envelope; envelope.lfo.freq = 2.; envelope.lfo.scale = 100.; - check_pitch_envelope(synth, &download, &midi, &envelope, TRUE); + check_pitch_envelope(synth, &download, &midi, &envelope, FALSE);
/* EG2 -> pitch */