From e453dbc30d947cb65a57c50a097dad3ea00f285f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Fri, 16 Apr 2010 21:50:45 +0300 Subject: [PATCH] fluidsynth: implement system reset message (Note that we have no demux capable of generating this. This one message cannot be found in Standard MIDI File.) --- modules/codec/fluidsynth.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/codec/fluidsynth.c b/modules/codec/fluidsynth.c index b742713b2a..5c1288b3fb 100644 --- a/modules/codec/fluidsynth.c +++ b/modules/codec/fluidsynth.c @@ -196,6 +196,9 @@ static aout_buffer_t *DecodeBlock (decoder_t *p_dec, block_t **pp_block) fluid_synth_sysex (p_sys->synth, (char *)p_block->p_buffer + 1, p_block->i_buffer - 2, NULL, NULL, NULL, 0); break; + case 0xF: + fluid_synth_system_reset (p_sys->synth); + break; } uint8_t p1 = (p_block->i_buffer > 1) ? (p_block->p_buffer[1] & 0x7f) : 0;