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 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 |