24 lines
552 B
C
24 lines
552 B
C
#ifndef JACKDRIVER_H
|
|
#define JACKDRIVER_H
|
|
#include<jack/jack.h>
|
|
#include<jack/ringbuffer.h>
|
|
|
|
typedef struct _jseq
|
|
{
|
|
char *client_name;
|
|
jack_ringbuffer_t **ringbuffer_out;
|
|
jack_ringbuffer_t **ringbuffer_in;
|
|
jack_client_t *jack_client;
|
|
jack_port_t **output_port;
|
|
jack_port_t **input_port;
|
|
uint8_t n_in;
|
|
uint8_t n_out;
|
|
} JACK_SEQ;
|
|
|
|
int init_jack(JACK_SEQ* seq, uint8_t verbose);
|
|
void close_jack(JACK_SEQ* seq);
|
|
void queue_midi(void* seqq, uint8_t msg[], uint8_t port_no);
|
|
int pop_midi(void* seqq, uint8_t msg[], uint8_t *port_no);
|
|
|
|
#endif
|