update rvoice function related docs

This commit is contained in:
derselbst 2018-04-09 16:57:34 +02:00
parent 5034e0ca8b
commit 0ccb0460fb

View file

@ -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])