diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-10-12 02:10:33 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-10-12 02:10:33 +0200 |
commit | 77a5006d1b0963194d841eea71e44cba511c862f (patch) | |
tree | be0e9ba9a3013f92b3f3b6cc864021734e5824b6 /apps/midi.h | |
parent | writing of task buf works now (diff) |
reading of seperate midi messages works now
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 38b1a7c..643dac8 100644 --- a/apps/midi.h +++ b/apps/midi.h @@ -26,13 +26,17 @@ #include <alsa/asoundlib.h> #include <poll.h> +#include "mixer.h" + typedef struct { snd_rawmidi_t* input_; + u_int8_t buf_[3]; + int read_idx_; } midi_t; int midi_init(midi_t* m, const char* device); int midi_get_poll_fd_count(midi_t* m); int midi_get_poll_fds(midi_t* m, struct pollfd *pfds, int npfds); -int midi_handle_revents(midi_t* m, struct pollfd *pfds, int npfds); +int midi_handle_revents(midi_t* m, struct pollfd *pfds, int npfds, mixer_t* x); #endif |