Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wine-mirror
GitHub Repository: wine-mirror/wine
Path: blob/master/libs/fluidsynth/src/rvoice/fluid_rvoice_mixer.h
4396 views
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
#include "fluid_ladspa.h"
28
29
typedef struct _fluid_rvoice_mixer_t fluid_rvoice_mixer_t;
30
31
int fluid_rvoice_mixer_render(fluid_rvoice_mixer_t *mixer, int blockcount);
32
int fluid_rvoice_mixer_get_bufs(fluid_rvoice_mixer_t *mixer,
33
fluid_real_t **left, fluid_real_t **right);
34
int fluid_rvoice_mixer_get_fx_bufs(fluid_rvoice_mixer_t *mixer,
35
fluid_real_t **fx_left, fluid_real_t **fx_right);
36
int fluid_rvoice_mixer_get_bufcount(fluid_rvoice_mixer_t *mixer);
37
#if WITH_PROFILING
38
int fluid_rvoice_mixer_get_active_voices(fluid_rvoice_mixer_t *mixer);
39
#endif
40
fluid_rvoice_mixer_t *new_fluid_rvoice_mixer(int buf_count, int fx_buf_count, int fx_units,
41
fluid_real_t sample_rate_max, fluid_real_t sample_rate,
42
fluid_rvoice_eventhandler_t *, int, int);
43
44
void delete_fluid_rvoice_mixer(fluid_rvoice_mixer_t *);
45
46
void
47
fluid_rvoice_mixer_set_reverb_full(const fluid_rvoice_mixer_t *mixer,
48
int fx_group, int set, const double values[]);
49
50
double
51
fluid_rvoice_mixer_reverb_get_param(const fluid_rvoice_mixer_t *mixer,
52
int fx_group, int param);
53
void
54
fluid_rvoice_mixer_set_chorus_full(const fluid_rvoice_mixer_t *mixer,
55
int fx_group, int set, const double values[]);
56
double
57
fluid_rvoice_mixer_chorus_get_param(const fluid_rvoice_mixer_t *mixer,
58
int fx_group, int param);
59
60
61
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_add_voice);
62
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_samplerate);
63
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_polyphony);
64
65
/* @deprecated */
66
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_chorus_enabled);
67
/* @deprecated */
68
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_reverb_enabled);
69
70
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_reverb_enable);
71
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_chorus_enable);
72
73
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_chorus_params);
74
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_set_reverb_params);
75
76
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_reset_reverb);
77
DECLARE_FLUID_RVOICE_FUNCTION(fluid_rvoice_mixer_reset_chorus);
78
79
80
81
void fluid_rvoice_mixer_set_mix_fx(fluid_rvoice_mixer_t *mixer, int on);
82
#ifdef LADSPA
83
void fluid_rvoice_mixer_set_ladspa(fluid_rvoice_mixer_t *mixer,
84
fluid_ladspa_fx_t *ladspa_fx, int audio_groups);
85
#endif
86
87
#endif
88
89