[vlc-commits] fluidsynth: handle aftertouch event

Rémi Denis-Courmont git at videolan.org
Fri Dec 20 20:51:11 CET 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 20 20:48:01 2019 +0200| [414f6141432a2baee55c060702f25dc6379833b5] | committer: Rémi Denis-Courmont

fluidsynth: handle aftertouch event

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=414f6141432a2baee55c060702f25dc6379833b5
---

 modules/codec/fluidsynth.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/modules/codec/fluidsynth.c b/modules/codec/fluidsynth.c
index 3698bd9951..2e704097dd 100644
--- a/modules/codec/fluidsynth.c
+++ b/modules/codec/fluidsynth.c
@@ -267,7 +267,11 @@ static int DecodeBlock (decoder_t *p_dec, block_t *p_block)
         case 0x90:
             fluid_synth_noteon (p_sys->synth, channel, p1, p2);
             break;
-        /*case 0xA0: note aftertouch not implemented */
+#if (FLUIDSYNTH_VERSION_MAJOR >= 2)
+        case 0xA0:
+            fluid_synth_key_pressure (p_sys->synth, channel, p1, p2);
+            break;
+#endif
         case 0xB0:
             fluid_synth_cc (p_sys->synth, channel, p1, p2);
             break;



More information about the vlc-commits mailing list