-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjackthread.h
More file actions
39 lines (30 loc) · 720 Bytes
/
Copy pathjackthread.h
File metadata and controls
39 lines (30 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef JACKTHREAD_H
#define JACKTHREAD_H
#include <QObject>
#include <QByteArray>
#include <QQueue>
#include <QDebug>
#include <jack/jack.h>
#include <jack/midiport.h>
class JackThread : public QObject {
Q_OBJECT
public:
JackThread();
~JackThread();
signals:
void error(QString err);
void midiEvent(char c0, char c1, char c2);
public slots:
void setup();
void set_led(unsigned char num, unsigned char value);
public:
int process(jack_nframes_t nframes, void *arg);
private:
jack_client_t *client;
jack_port_t *output_port;
jack_port_t *feedback_port;
jack_port_t *input_port;
bool ready;
QQueue<QByteArray*> midiEventsToBeSent;
};
#endif // JACKTHREAD_H