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).
This commit is contained in:
Max Kellermann
2009-03-14 11:36:50 +01:00
parent 8d01110c84
commit a5017a2d7c
12 changed files with 113 additions and 82 deletions

View File

@@ -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