1 /* FluidSynth - A Software Synthesizer 2 * 3 * Copyright (C) 2003 Peter Hanappe and others. 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public License 7 * as published by the Free Software Foundation; either version 2.1 of 8 * the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, but 11 * WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free 17 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18 * 02110-1301, USA 19 */ 20 21 22 #ifndef _FLUID_RVOICE_MIXER_H 23 #define _FLUID_RVOICE_MIXER_H 24 25 #include "fluidsynth_priv.h" 26 #include "fluid_rvoice.h" 27 28 typedef struct _fluid_rvoice_mixer_t fluid_rvoice_mixer_t; 29 30 int fluid_rvoice_mixer_render(fluid_rvoice_mixer_t *mixer, int blockcount); 31 int fluid_rvoice_mixer_get_bufs(fluid_rvoice_mixer_t *mixer, 32 fluid_real_t **left, fluid_real_t **right); 33 int fluid_rvoice_mixer_get_fx_bufs(fluid_rvoice_mixer_t *mixer, 34 fluid_real_t **fx_left, fluid_real_t **fx_right); 35 int fluid_rvoice_mixer_get_bufcount(fluid_rvoice_mixer_t *mixer); 36 #if WITH_PROFILING 37 int fluid_rvoice_mixer_get_active_voices(fluid_rvoice_mixer_t *mixer); 38 #endif 39 fluid_rvoice_mixer_t *new_fluid_rvoice_mixer(int buf_count, int fx_buf_count, int fx_units, 40 fluid_real_t sample_rate, fluid_rvoice_eventhandler_t *, int, int); 41 42 void delete_fluid_rvoice_mixer(fluid_rvoice_mixer_t *); 43 44 45 DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_add_voice); 46 DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_samplerate); 47 DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_polyphony); 48 DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_chorus_enabled); 49 DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_reverb_enabled); 50 DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_chorus_params); 51 DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_reverb_params); 52 53 DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_reset_reverb); 54 DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_reset_chorus); 55 56 57 58 void fluid_rvoice_mixer_set_mix_fx(fluid_rvoice_mixer_t *mixer, int on); 59 #ifdef LADSPA 60 void fluid_rvoice_mixer_set_ladspa(fluid_rvoice_mixer_t *mixer, 61 fluid_ladspa_fx_t *ladspa_fx, int audio_groups); 62 #endif 63 64 #endif 65 66