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
00055 jack_nframes_t
00056 jack_midi_get_event_count(void* port_buffer);
00057
00058
00070 int
00071 jack_midi_event_get(jack_midi_event_t *event,
00072 void *port_buffer,
00073 jack_nframes_t event_index);
00074
00075
00084 void
00085 jack_midi_clear_buffer(void *port_buffer);
00086
00087
00095 size_t
00096 jack_midi_max_event_size(void* port_buffer);
00097
00098
00114 jack_midi_data_t*
00115 jack_midi_event_reserve(void *port_buffer,
00116 jack_nframes_t time,
00117 size_t data_size);
00118
00119
00132 int
00133 jack_midi_event_write(void *port_buffer,
00134 jack_nframes_t time,
00135 const jack_midi_data_t *data,
00136 size_t data_size);
00137
00138
00147 jack_nframes_t
00148 jack_midi_get_lost_event_count(void *port_buffer);
00149
00152 #ifdef __cplusplus
00153 }
00154 #endif
00155
00156
00157 #endif
00158
00159