summaryrefslogtreecommitdiff
path: root/apps/midi.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-12 02:10:33 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-12 02:10:33 +0200
commit77a5006d1b0963194d841eea71e44cba511c862f (patch)
treebe0e9ba9a3013f92b3f3b6cc864021734e5824b6 /apps/midi.h
parentwriting of task buf works now (diff)
reading of seperate midi messages works now
Diffstat (limited to 'apps/midi.h')
-rw-r--r--apps/midi.h6
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