mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 18:46:34 +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
|
|
@ -23,7 +23,12 @@
|
|||
#define _FLUID_EVENT_PRIV_H
|
||||
|
||||
#include "fluidsynth.h"
|
||||
#include "fluid_sys.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef int fluid_note_id_t;
|
||||
|
||||
/* Private data for event */
|
||||
/* ?? should be optimized in size, using unions */
|
||||
|
|
@ -37,51 +42,24 @@ struct _fluid_event_t
|
|||
short key;
|
||||
short vel;
|
||||
short control;
|
||||
short value;
|
||||
short id; //?? unused ?
|
||||
int value;
|
||||
fluid_note_id_t id;
|
||||
int pitch;
|
||||
unsigned int duration;
|
||||
double scale;
|
||||
void *data;
|
||||
};
|
||||
|
||||
unsigned int fluid_event_get_time(fluid_event_t *evt);
|
||||
void fluid_event_set_time(fluid_event_t *evt, unsigned int time);
|
||||
|
||||
fluid_note_id_t fluid_event_get_id(fluid_event_t *evt);
|
||||
void fluid_event_set_id(fluid_event_t *evt, fluid_note_id_t id);
|
||||
|
||||
void fluid_event_clear(fluid_event_t *evt);
|
||||
|
||||
/* private data for sorter + heap */
|
||||
enum fluid_evt_entry_type
|
||||
{
|
||||
FLUID_EVT_ENTRY_INSERT = 0,
|
||||
FLUID_EVT_ENTRY_REMOVE
|
||||
};
|
||||
|
||||
typedef struct _fluid_evt_entry fluid_evt_entry;
|
||||
struct _fluid_evt_entry
|
||||
{
|
||||
fluid_evt_entry *next;
|
||||
short entryType;
|
||||
fluid_event_t evt;
|
||||
};
|
||||
|
||||
#define HEAP_WITH_DYNALLOC 1
|
||||
/* #undef HEAP_WITH_DYNALLOC */
|
||||
|
||||
typedef struct _fluid_evt_heap_t
|
||||
{
|
||||
#ifdef HEAP_WITH_DYNALLOC
|
||||
fluid_evt_entry *freelist;
|
||||
fluid_mutex_t mutex;
|
||||
#else
|
||||
fluid_evt_entry *head;
|
||||
fluid_evt_entry *tail;
|
||||
fluid_evt_entry pool;
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
} fluid_evt_heap_t;
|
||||
|
||||
fluid_evt_heap_t *_fluid_evt_heap_init(int nbEvents);
|
||||
void _fluid_evt_heap_free(fluid_evt_heap_t *heap);
|
||||
fluid_evt_entry *_fluid_seq_heap_get_free(fluid_evt_heap_t *heap);
|
||||
void _fluid_seq_heap_set_free(fluid_evt_heap_t *heap, fluid_evt_entry *evt);
|
||||
|
||||
#endif /* _FLUID_EVENT_PRIV_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue