From a5017a2d7c03506f55cf7eb465ca7d254dfc14a9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 14 Mar 2009 11:36:50 +0100 Subject: 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). --- src/mixer_api.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/mixer_api.h') diff --git a/src/mixer_api.h b/src/mixer_api.h index 22858821c..a02ab2dd5 100644 --- a/src/mixer_api.h +++ b/src/mixer_api.h @@ -40,27 +40,4 @@ mixer_init(struct mixer *mixer, const struct mixer_plugin *plugin) mixer->plugin = plugin; } -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); - -static inline int -mixer_get_volume(struct mixer *mixer) -{ - return mixer->plugin->get_volume(mixer); -} - -static inline bool -mixer_set_volume(struct mixer *mixer, unsigned volume) -{ - return mixer->plugin->set_volume(mixer, volume); -} - -void mixer_disable_all(void); - #endif -- cgit v1.2.3