mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 21:26:26 +01:00
Update to fluidsynth-2.2
This commit is contained in:
parent
dd060b04dc
commit
71788ecfe4
62 changed files with 4719 additions and 2064 deletions
|
|
@ -98,7 +98,7 @@ typedef union _fluid_rvoice_param_t
|
|||
int i;
|
||||
fluid_real_t real;
|
||||
} fluid_rvoice_param_t;
|
||||
enum { MAX_EVENT_PARAMS = 6 }; /**< Maximum number of #fluid_rvoice_param_t to be passed to an #fluid_rvoice_function_t */
|
||||
enum { MAX_EVENT_PARAMS = 7 }; /**< Maximum number of #fluid_rvoice_param_t to be passed to an #fluid_rvoice_function_t */
|
||||
typedef void (*fluid_rvoice_function_t)(void *obj, const fluid_rvoice_param_t param[MAX_EVENT_PARAMS]);
|
||||
|
||||
/* Macro for declaring an rvoice event function (#fluid_rvoice_function_t). The functions may only access
|
||||
|
|
@ -191,11 +191,19 @@ typedef void (*fluid_rvoice_function_t)(void *obj, const fluid_rvoice_param_t pa
|
|||
void* fluid_alloc(size_t len);
|
||||
|
||||
/* File access */
|
||||
#define FLUID_FOPEN(_f,_m) fopen(_f,_m)
|
||||
#define FLUID_FOPEN(_f,_m) fluid_fopen(_f,_m)
|
||||
#define FLUID_FCLOSE(_f) fclose(_f)
|
||||
#define FLUID_FREAD(_p,_s,_n,_f) fread(_p,_s,_n,_f)
|
||||
|
||||
FILE *fluid_fopen(const char *filename, const char *mode);
|
||||
|
||||
#ifdef WIN32
|
||||
#define FLUID_FSEEK(_f,_n,_set) _fseeki64(_f,_n,_set)
|
||||
#else
|
||||
#define FLUID_FSEEK(_f,_n,_set) fseek(_f,_n,_set)
|
||||
#define FLUID_FTELL(_f) ftell(_f)
|
||||
#endif
|
||||
|
||||
#define FLUID_FTELL(_f) fluid_file_tell(_f)
|
||||
|
||||
/* Memory functions */
|
||||
#define FLUID_MEMCPY(_dst,_src,_n) memcpy(_dst,_src,_n)
|
||||
|
|
@ -206,9 +214,10 @@ void* fluid_alloc(size_t len);
|
|||
#define FLUID_STRCMP(_s,_t) strcmp(_s,_t)
|
||||
#define FLUID_STRNCMP(_s,_t,_n) strncmp(_s,_t,_n)
|
||||
#define FLUID_STRCPY(_dst,_src) strcpy(_dst,_src)
|
||||
#define FLUID_STRTOL(_s,_e,_b) strtol(_s,_e,_b)
|
||||
|
||||
#define FLUID_STRNCPY(_dst,_src,_n) \
|
||||
do { strncpy(_dst,_src,_n); \
|
||||
do { strncpy(_dst,_src,_n-1); \
|
||||
(_dst)[(_n)-1]='\0'; \
|
||||
}while(0)
|
||||
|
||||
|
|
@ -226,8 +235,8 @@ do { strncpy(_dst,_src,_n); \
|
|||
|
||||
#if (defined(WIN32) && _MSC_VER < 1900) || defined(MINGW32)
|
||||
/* need to make sure we use a C99 compliant implementation of (v)snprintf(),
|
||||
* i.e. not microsofts non compliant extension _snprintf() as it doesnt
|
||||
* reliably null-terminates the buffer
|
||||
* i.e. not microsofts non compliant extension _snprintf() as it doesn't
|
||||
* reliably null-terminate the buffer
|
||||
*/
|
||||
#define FLUID_SNPRINTF g_snprintf
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue