]> git.sesse.net Git - vlc/commitdiff
fluidsynth: implement system reset message
authorRémi Denis-Courmont <remi@remlab.net>
Fri, 16 Apr 2010 18:50:45 +0000 (21:50 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Fri, 16 Apr 2010 18:54:50 +0000 (21:54 +0300)
(Note that we have no demux capable of generating this. This one message
 cannot be found in Standard MIDI File.)

modules/codec/fluidsynth.c

index b742713b2ad75d3f8a81b50103cabfddfe8f2389..5c1288b3fbf5b0a6ac23b845ad47adc188f2c814 100644 (file)
@@ -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;