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 Library General Public License 7 * as published by the Free Software Foundation; either version 2 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 * Library General Public License for more details. 14 * 15 * You should have received a copy of the GNU Library 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_CHORUS_H 23 #define _FLUID_CHORUS_H 24 25 #include "fluidsynth_priv.h" 26 27 28 typedef struct _fluid_chorus_t fluid_chorus_t; 29 30 /** Flags for fluid_chorus_set() */ 31 typedef enum 32 { 33 FLUID_CHORUS_SET_NR = 1 << 0, 34 FLUID_CHORUS_SET_LEVEL = 1 << 1, 35 FLUID_CHORUS_SET_SPEED = 1 << 2, 36 FLUID_CHORUS_SET_DEPTH = 1 << 3, 37 FLUID_CHORUS_SET_TYPE = 1 << 4, 38 } fluid_chorus_set_t; 39 40 /** Value for fluid_chorus_set() which sets all chorus parameters. */ 41 #define FLUID_CHORUS_SET_ALL 0x1F 42 43 /* 44 * chorus 45 */ 46 fluid_chorus_t* new_fluid_chorus(fluid_real_t sample_rate); 47 void delete_fluid_chorus(fluid_chorus_t* chorus); 48 int fluid_chorus_init(fluid_chorus_t* chorus); 49 void fluid_chorus_reset(fluid_chorus_t* chorus); 50 51 void fluid_chorus_set(fluid_chorus_t* chorus, int set, int nr, float level, 52 float speed, float depth_ms, int type); 53 54 void fluid_chorus_processmix(fluid_chorus_t* chorus, fluid_real_t *in, 55 fluid_real_t *left_out, fluid_real_t *right_out); 56 void fluid_chorus_processreplace(fluid_chorus_t* chorus, fluid_real_t *in, 57 fluid_real_t *left_out, fluid_real_t *right_out); 58 59 60 61 #endif /* _FLUID_CHORUS_H */ 62