Mercurial > audlegacy-plugins
comparison src/amidi-plug/backend-fluidsynth/b-fluidsynth.c @ 1414:5f892afeb8e1 audacious-plugins-1.4.0-dr2
- amidi-plug 0.8 beta1; support for gthread and v3 plugin system; needs testing and refinements
author | Giacomo Lozito <james@develia.org> |
---|---|
date | Mon, 06 Aug 2007 14:01:24 +0200 |
parents | d2e508857ded |
children |
comparison
equal
deleted
inserted
replaced
1413:4731d28ea19d | 1414:5f892afeb8e1 |
---|---|
161 } | 161 } |
162 | 162 |
163 | 163 |
164 gint sequencer_queue_start( void ) | 164 gint sequencer_queue_start( void ) |
165 { | 165 { |
166 sc.last_sample_time = 0; | |
166 g_timer_start( sc.timer_seq ); /* reset the sequencer timer */ | 167 g_timer_start( sc.timer_seq ); /* reset the sequencer timer */ |
167 g_timer_start( sc.timer_sample ); /* reset the sampler timer */ | 168 g_timer_start( sc.timer_sample ); /* reset the sampler timer */ |
169 return 1; | |
170 } | |
171 | |
172 | |
173 gint sequencer_queue_stop( void ) | |
174 { | |
175 g_timer_stop( sc.timer_seq ); | |
176 g_timer_stop( sc.timer_sample ); | |
168 return 1; | 177 return 1; |
169 } | 178 } |
170 | 179 |
171 | 180 |
172 gint sequencer_event_init( void ) | 181 gint sequencer_event_init( void ) |
268 | 277 |
269 gint sequencer_event_other( midievent_t * event ) | 278 gint sequencer_event_other( midievent_t * event ) |
270 { | 279 { |
271 /* unhandled */ | 280 /* unhandled */ |
272 i_sleep( event->tick_real ); | 281 i_sleep( event->tick_real ); |
282 return 1; | |
283 } | |
284 | |
285 | |
286 gint sequencer_event_allnoteoff( gint unused ) | |
287 { | |
288 gint c = 0; | |
289 for ( c = 0 ; c < 16 ; c++ ) | |
290 { | |
291 fluid_synth_all_notes_off( sc.synth , c ); | |
292 } | |
273 return 1; | 293 return 1; |
274 } | 294 } |
275 | 295 |
276 | 296 |
277 gint sequencer_output( gpointer * buffer , gint * len ) | 297 gint sequencer_output( gpointer * buffer , gint * len ) |