aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer_control.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-14 11:36:50 +0100
committerMax Kellermann <max@duempel.org>2009-03-14 11:36:50 +0100
commita5017a2d7c03506f55cf7eb465ca7d254dfc14a9 (patch)
treedea521c4221f3cd6729e85f384dfcb8d2fa1e8d1 /src/mixer_control.h
parent8d01110c8407b1efbdbe255f2e27a6daf6ac2d9a (diff)
downloadmpd-a5017a2d7c03506f55cf7eb465ca7d254dfc14a9.tar.gz
mpd-a5017a2d7c03506f55cf7eb465ca7d254dfc14a9.tar.xz
mpd-a5017a2d7c03506f55cf7eb465ca7d254dfc14a9.zip
mixer_api: moved functions to mixer_control.c
mixer_control.h should provide the functions needed to manipulate a mixer, without exposing the internal mixer API (which is provided by mixer_api.h).
Diffstat (limited to 'src/mixer_control.h')
-rw-r--r--src/mixer_control.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/mixer_control.h b/src/mixer_control.h
index 4f3a97dbc..b126d8c81 100644
--- a/src/mixer_control.h
+++ b/src/mixer_control.h
@@ -17,9 +17,39 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+/** \file
+ *
+ * Functions which manipulate a #mixer object.
+ */
+
#ifndef MPD_MIXER_CONTROL_H
#define MPD_MIXER_CONTROL_H
#include <stdbool.h>
+struct mixer;
+struct mixer_plugin;
+struct config_param;
+
+void
+mixer_disable_all(void);
+
+struct mixer *
+mixer_new(const struct mixer_plugin *plugin, const struct config_param *param);
+
+void
+mixer_free(struct mixer *mixer);
+
+bool
+mixer_open(struct mixer *mixer);
+
+void
+mixer_close(struct mixer *mixer);
+
+int
+mixer_get_volume(struct mixer *mixer);
+
+bool
+mixer_set_volume(struct mixer *mixer, unsigned volume);
+
#endif