From 3922f1c36f8d8e60f8537bcaead0422129ec58dd Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 1 Oct 2014 15:32:02 +0200 Subject: Add mute/unmute functions. REflect new functionality in aiomixer. --- src/audioio.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/audioio.h') diff --git a/src/audioio.h b/src/audioio.h index e78813b..5f62e27 100644 --- a/src/audioio.h +++ b/src/audioio.h @@ -46,6 +46,7 @@ extern "C" { #define COULD_NOT_OPEN_DEVICE -110 #define INVALID_MIXER_LEVEL -111 #define NO_SUCH_ENUM -112 +#define NO_SUCH_CHANNEL -113 struct aio_t; @@ -185,6 +186,16 @@ int aio_get_enum_value(struct aio_t *handle, const char *name, int aio_set_enum_value(struct aio_t *handle, const char *name, const char *value); +/** + * Set mute state of a named channel. + */ +int aio_set_mute(struct aio_t *handle, const char *name, int muted); + +/** + * Get mute state of a named channel. + */ +int aio_get_mute(struct aio_t *handle, const char *name, int *muted); + /** * Get actual samplerate. * The samplerate set in ai_init may or may not match a possible samplerate for -- cgit v1.2.3