[vlc-commits] commit: fluidsynth: implement system reset message ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Fri Apr 16 20:55:00 CEST 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 16 21:50:45 2010 +0300| [e453dbc30d947cb65a57c50a097dad3ea00f285f] | committer: Rémi Denis-Courmont 

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.)

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

 modules/codec/fluidsynth.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/codec/fluidsynth.c b/modules/codec/fluidsynth.c
index b742713..5c1288b 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;



More information about the vlc-commits mailing list