00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef _FLUIDSYNTH_VOICE_H
00022
#define _FLUIDSYNTH_VOICE_H
00023
00024
#ifdef __cplusplus
00025
extern "C" {
00026
#endif
00027
00028
00029
00030
00031
00032
00033
00038
FLUIDSYNTH_API void fluid_voice_update_param(
fluid_voice_t* voice,
int gen);
00039
00040
00041
00042 enum fluid_voice_add_mod{
00043
FLUID_VOICE_OVERWRITE,
00044
FLUID_VOICE_ADD,
00045
FLUID_VOICE_DEFAULT
00046 };
00047
00048
00049
FLUIDSYNTH_API void fluid_voice_add_mod(
fluid_voice_t* voice,
fluid_mod_t* mod,
int mode);
00050
00052
FLUIDSYNTH_API void fluid_voice_gen_set(
fluid_voice_t* voice,
int gen,
float val);
00053
00055
FLUIDSYNTH_API float fluid_voice_gen_get(
fluid_voice_t* voice,
int gen);
00056
00058
FLUIDSYNTH_API void fluid_voice_gen_incr(
fluid_voice_t* voice,
int gen,
float val);
00059
00060
00072
FLUIDSYNTH_API unsigned int fluid_voice_get_id(
fluid_voice_t* voice);
00073
00074
00075
FLUIDSYNTH_API int fluid_voice_is_playing(
fluid_voice_t* voice);
00076
00089
FLUIDSYNTH_API int fluid_voice_optimize_sample(
fluid_sample_t* s);
00090
00091
00092
00093
#ifdef __cplusplus
00094
}
00095
#endif
00096
#endif
00097