From 25d5938d4f69911eb2628b1bc4c816e4194bae6e Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Fri, 22 Jun 2018 03:36:15 +0300 Subject: VLC Plugin: Add missing Note-AfterTouch event support --- utils/vlc_codec/libadlmidi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'utils/vlc_codec/libadlmidi.c') diff --git a/utils/vlc_codec/libadlmidi.c b/utils/vlc_codec/libadlmidi.c index aedd718..efc2bb8 100644 --- a/utils/vlc_codec/libadlmidi.c +++ b/utils/vlc_codec/libadlmidi.c @@ -276,7 +276,9 @@ static block_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block) case 0x90: adl_rt_noteOn(p_sys->synth, channel, p1, p2); break; - /*case 0xA0: note aftertouch not implemented */ + case 0xA0: + adl_rt_noteAfterTouch(p_sys->synth, channel, p1, p2); + break; case 0xB0: adl_rt_controllerChange(p_sys->synth, channel, p1, p2); break; -- cgit v1.2.3 From 1f4b59dd86a5a66f3af9693f988482c0ff57724e Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Fri, 22 Jun 2018 03:48:08 +0300 Subject: VLC Codec: Make passing of SysEx events --- utils/vlc_codec/libadlmidi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils/vlc_codec/libadlmidi.c') diff --git a/utils/vlc_codec/libadlmidi.c b/utils/vlc_codec/libadlmidi.c index efc2bb8..24a519e 100644 --- a/utils/vlc_codec/libadlmidi.c +++ b/utils/vlc_codec/libadlmidi.c @@ -257,8 +257,9 @@ static block_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block) msg_Warn (p_dec, "fragmented SysEx not implemented"); goto drop; } - //fluid_synth_sysex (p_sys->synth, (char *)p_block->p_buffer + 1, - // p_block->i_buffer - 2, NULL, NULL, NULL, 0); + adl_rt_systemExclusive(p_sys->synth, + (const ADL_UInt8 *)p_block->p_buffer + 1, + p_block->i_buffer - 2); break; case 0xF: adl_rt_resetState(p_sys->synth); -- cgit v1.2.3