diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 17:37:55 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 17:37:55 +0100 |
commit | 763dd8c1dd4de451663474bafd13068eb6017bbb (patch) | |
tree | 04d25b3107b170987ba6b2b1340f313a760c2e05 /src/mixer_api.h | |
parent | ad8561bfdc76d05812efc7fa802df48c37fcf770 (diff) | |
download | mpd-763dd8c1dd4de451663474bafd13068eb6017bbb.tar.gz mpd-763dd8c1dd4de451663474bafd13068eb6017bbb.tar.xz mpd-763dd8c1dd4de451663474bafd13068eb6017bbb.zip |
mixer: return a mixer struct pointer
Don't use statically allocated mixer objects.
Diffstat (limited to '')
-rw-r--r-- | src/mixer_api.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mixer_api.h b/src/mixer_api.h index c209f4b06..c563457c2 100644 --- a/src/mixer_api.h +++ b/src/mixer_api.h @@ -71,6 +71,13 @@ struct mixer { void mixer_init(struct mixer *mixer, const struct mixer_plugin *plugin); void mixer_finish(struct mixer *mixer); + +struct mixer * +mixer_new(const struct mixer_plugin *plugin); + +void +mixer_free(struct mixer *mixer); + void mixer_configure(struct mixer *mixer, const struct config_param *param); bool mixer_open(struct mixer *mixer); bool mixer_control(struct mixer *mixer, int cmd, void *arg); |