From 77a5006d1b0963194d841eea71e44cba511c862f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 12 Oct 2015 02:10:33 +0200 Subject: reading of seperate midi messages works now --- apps/midi.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/midi.h') 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 #include +#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 -- cgit v1.2.3