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

git at videolan.org git at videolan.org
Sat Apr 17 10:36:00 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 16 21:50:45 2010 +0300| [367a128eea49d45866fd22bf8cff0566039c5977] | 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.)
(cherry picked from commit e453dbc30d947cb65a57c50a097dad3ea00f285f)

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

 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 31719d0..0f25c89 100644
--- a/modules/codec/fluidsynth.c
+++ b/modules/codec/fluidsynth.c
@@ -203,6 +203,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