1 /* FluidSynth - A Software Synthesizer
3 * Copyright (C) 2003 Peter Hanappe and others.
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.
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.
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
22 #ifndef _FLUID_CHORUS_H
23 #define _FLUID_CHORUS_H
25 #include "fluidsynth_priv.h"
28 typedef struct _fluid_chorus_t fluid_chorus_t;
30 /** Flags for fluid_chorus_set() */
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,
39 /** Value for fluid_chorus_set() which sets all chorus parameters. */
40 FLUID_CHORUS_SET_ALL = FLUID_CHORUS_SET_NR
41 | FLUID_CHORUS_SET_LEVEL
42 | FLUID_CHORUS_SET_SPEED
43 | FLUID_CHORUS_SET_DEPTH
44 | FLUID_CHORUS_SET_TYPE,
50 fluid_chorus_t *new_fluid_chorus(fluid_real_t sample_rate);
51 void delete_fluid_chorus(fluid_chorus_t *chorus);
52 int fluid_chorus_init(fluid_chorus_t *chorus);
53 void fluid_chorus_reset(fluid_chorus_t *chorus);
55 void fluid_chorus_set(fluid_chorus_t *chorus, int set, int nr, fluid_real_t level,
56 fluid_real_t speed, fluid_real_t depth_ms, int type);
58 void fluid_chorus_processmix(fluid_chorus_t *chorus, fluid_real_t *in,
59 fluid_real_t *left_out, fluid_real_t *right_out);
60 void fluid_chorus_processreplace(fluid_chorus_t *chorus, fluid_real_t *in,
61 fluid_real_t *left_out, fluid_real_t *right_out);
65 #endif /* _FLUID_CHORUS_H */