diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-10-12 00:29:45 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-10-12 00:29:45 +0200 |
commit | 3503079eae02744f8e361a78fb1ef71a30d03b39 (patch) | |
tree | fc3565574a422a9055f39651a4bdfc4748656d07 /apps/mixer.h | |
parent | reading config dir works now (diff) |
reading of mixer commands works now
Diffstat (limited to 'apps/mixer.h')
-rw-r--r-- | apps/mixer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/mixer.h b/apps/mixer.h index fdd1197..1e22391 100644 --- a/apps/mixer.h +++ b/apps/mixer.h @@ -26,12 +26,25 @@ #include <alsa/asoundlib.h> #include <poll.h> +#include "slist.h" + +typedef struct { + u_int8_t code_[3]; +} midi_cmd_t; + +typedef struct { + char* name_; + slist_t cmds_; +} lang_t; + typedef struct { const char* name_; snd_rawmidi_t* output_; + slist_t langs_; } mixer_t; int mixer_init(mixer_t* m, const char* name, const char* device); +void mixer_print_langs(mixer_t* m); int mixer_get_poll_fd_count(mixer_t* m); int mixer_get_poll_fds(mixer_t* m, struct pollfd *pfds, int npfds); int mixer_handle_revents(mixer_t* m, struct pollfd *pfds, int npfds); |