aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer_api.h
diff options
context:
space:
mode:
authorDavid Guibert <david.guibert@gmail.com>2009-03-06 18:21:23 +0100
committerMax Kellermann <max@duempel.org>2009-03-07 15:59:20 +0100
commit21bb10f4bf6708f4786821eff470cd0c59d04b00 (patch)
treed8956e5b7312eef352583e886691ef8ea9cffc55 /src/mixer_api.h
parenta547d24eb23dafd9f26af781e6fb147c433464b2 (diff)
downloadmpd-21bb10f4bf6708f4786821eff470cd0c59d04b00.tar.gz
mpd-21bb10f4bf6708f4786821eff470cd0c59d04b00.tar.xz
mpd-21bb10f4bf6708f4786821eff470cd0c59d04b00.zip
pulse mixer
This patch introduces the mixer for the pulse output. Technically speaking, the pulse index is needed to get or set the volume. You must define callback fonctions to get this index since the pulse output in mpd is done using the simpe api. The pulse simple api does not provide the index of the newly defined output. So callback fonctions are associated to the pulse context. The list of all the sink input is then retreived. Then we select the name of the mpd pulse output and control its volume by its associated index number. Signed-off-by: Patrice Linel <patnathanael@gmail.com> Signed-off-by: David Guibert <david.guibert@gmail.com> [mk: fixed whitespace errors and broke long lines; removed daemonization changes from main.c]
Diffstat (limited to 'src/mixer_api.h')
-rw-r--r--src/mixer_api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mixer_api.h b/src/mixer_api.h
index c8f219d83..e80a6511f 100644
--- a/src/mixer_api.h
+++ b/src/mixer_api.h
@@ -27,6 +27,7 @@
extern const struct mixer_plugin alsa_mixer;
extern const struct mixer_plugin oss_mixer;
+extern const struct mixer_plugin pulse_mixer;
struct config_param;