mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-19 06:02:03 +00:00
update rvoice function related docs
This commit is contained in:
parent
5034e0ca8b
commit
0ccb0460fb
1 changed files with 6 additions and 5 deletions
|
@ -205,18 +205,19 @@ typedef struct _fluid_server_socket_t fluid_server_socket_t;
|
|||
typedef struct _fluid_sample_timer_t fluid_sample_timer_t;
|
||||
typedef struct _fluid_zone_range_t fluid_zone_range_t;
|
||||
|
||||
/* Declare rvoice related typedefs here instead of fluid_rvoice.h, as it's needed
|
||||
* in fluid_lfo.c and fluid_adsr.c as well */
|
||||
typedef union _fluid_rvoice_param_t
|
||||
{
|
||||
void* ptr;
|
||||
int i;
|
||||
fluid_real_t real;
|
||||
} fluid_rvoice_param_t;
|
||||
typedef void (*fluid_rvoice_function_t)(void* obj, fluid_rvoice_param_t* param);
|
||||
enum { MAX_EVENT_PARAMS = 6 }; /**< Maximum number of #fluid_rvoice_param_t to be passed to an #fluid_rvoice_function_t */
|
||||
typedef void (*fluid_rvoice_function_t)(void* obj, fluid_rvoice_param_t param[MAX_EVENT_PARAMS]);
|
||||
|
||||
enum { MAX_EVENT_PARAMS = 6 };
|
||||
|
||||
/* macro for declaring an rvoice event function (#fluid_rvoice_function_t). the functions may only access those params that were
|
||||
* previously set in fluid_voice.c
|
||||
/* Macro for declaring an rvoice event function (#fluid_rvoice_function_t). The functions may only access
|
||||
* those params that were previously set in fluid_voice.c
|
||||
*/
|
||||
#define DECLARE_FLUID_RVOICE_FUNCTION(name) void name(void* obj, fluid_rvoice_param_t param[MAX_EVENT_PARAMS])
|
||||
|
||||
|
|
Loading…
Reference in a new issue