00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __JACK_MIDIPORT_H
00022 #define __JACK_MIDIPORT_H
00023
00024 #ifdef __cplusplus
00025 extern "C" {
00026 #endif
00027
00028 #include <jack/types.h>
00029 #include <stdlib.h>
00030
00031
00033 typedef unsigned char jack_midi_data_t;
00034
00035
00037 typedef struct _jack_midi_event
00038 {
00039 jack_nframes_t time;
00040 size_t size;
00041 jack_midi_data_t *buffer;
00042 } jack_midi_event_t;
00043
00044
00045
00046
00047
00048
00049
00050
00051 jack_nframes_t
00052 jack_midi_get_event_count(void* port_buffer,
00053 jack_nframes_t nframes);
00054
00055
00068 int
00069 jack_midi_event_get(jack_midi_event_t *event,
00070 void *port_buffer,
00071 jack_nframes_t event_index,
00072 jack_nframes_t nframes);
00073
00074
00084 void
00085 jack_midi_clear_buffer(void *port_buffer,
00086 jack_nframes_t nframes);
00087
00088
00097 size_t
00098 jack_midi_max_event_size(void* port_buffer, jack_nframes_t nframes);
00099
00100
00117 jack_midi_data_t*
00118 jack_midi_event_reserve(void *port_buffer,
00119 jack_nframes_t time,
00120 size_t data_size,
00121 jack_nframes_t nframes);
00122
00123
00137 int
00138 jack_midi_event_write(void *port_buffer,
00139 jack_nframes_t time,
00140 const jack_midi_data_t *data,
00141 size_t data_size,
00142 jack_nframes_t nframes);
00143
00144
00154 jack_nframes_t
00155 jack_midi_get_lost_event_count(void *port_buffer,
00156 jack_nframes_t nframes);
00157
00158
00159 #ifdef __cplusplus
00160 }
00161 #endif
00162
00163
00164 #endif
00165
00166