diff options
author | Taylor Holberton <tay10r@protonmail.com> | 2020-06-03 09:43:06 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 09:43:06 -0400 |
commit | 1a53e3a9daa9ea7226c2884c6ad45c31a146c9fe (patch) | |
tree | 582e20875d0bb1803b8ce15b7cba81c293772349 /include | |
parent | 102f06d85c60e0ac52d755fbdd8d3f8531f5e3d5 (diff) | |
parent | df855e804886f2846d0bdb6d8b1aad506452f051 (diff) |
Merge pull request #159 from rohkkumar/plugin_update
Mixer event plugin update
Diffstat (limited to 'include')
-rw-r--r-- | include/tinyalsa/mixer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/tinyalsa/mixer.h b/include/tinyalsa/mixer.h index faeb957..7f0f022 100644 --- a/include/tinyalsa/mixer.h +++ b/include/tinyalsa/mixer.h @@ -35,7 +35,9 @@ #ifndef TINYALSA_MIXER_H #define TINYALSA_MIXER_H +#include <sys/time.h> #include <stddef.h> +#include <sound/asound.h> #if defined(__cplusplus) extern "C" { @@ -136,6 +138,9 @@ int mixer_ctl_get_range_min(const struct mixer_ctl *ctl); int mixer_ctl_get_range_max(const struct mixer_ctl *ctl); +int mixer_read_event(struct mixer *mixer, struct snd_ctl_event *ev); + +int mixer_consume_event(struct mixer *mixer); #if defined(__cplusplus) } /* extern "C" */ #endif |