diff options
Diffstat (limited to 'apps/midi.h')
-rw-r--r-- | apps/midi.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/midi.h b/apps/midi.h index 91634a8..2c0153b 100644 --- a/apps/midi.h +++ b/apps/midi.h @@ -24,12 +24,16 @@ #define DOLMETSCHCTL_midi_h_INCLUDED #include <alsa/asoundlib.h> +#include <pthread.h> typedef struct { + pthread_t thread_; snd_rawmidi_t* input_; + u_int8_t stop_; } midi_t; int midi_init(midi_t* m, const char* device); -void midi_run(midi_t* m); +int midi_start(midi_t* m); +int midi_stop(midi_t* m); #endif |