diff options
author | Max Kellermann <max@duempel.org> | 2009-02-16 01:39:52 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-02-16 01:39:52 +0100 |
commit | 83ce0e5325b9bcf9b339ea9c69b658d45b4125cf (patch) | |
tree | fa7438905b1fa2219832ecfc4c1d4e9ecc40c55e /src/mixer_api.c | |
parent | 37bc31d161d486d0499cf64123b7561f57dd0c53 (diff) | |
download | mpd-83ce0e5325b9bcf9b339ea9c69b658d45b4125cf.tar.gz mpd-83ce0e5325b9bcf9b339ea9c69b658d45b4125cf.tar.xz mpd-83ce0e5325b9bcf9b339ea9c69b658d45b4125cf.zip |
mixer_api: replaced method "control()" with "{get,set}_volume()"
The method control() is too complicated, and overengineered. Replace
it with two trivial functions: get_volume() and set_volume().
Diffstat (limited to 'src/mixer_api.c')
-rw-r--r-- | src/mixer_api.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mixer_api.c b/src/mixer_api.c index b0905bc5e..ec621950c 100644 --- a/src/mixer_api.c +++ b/src/mixer_api.c @@ -50,12 +50,6 @@ bool mixer_open(struct mixer *mixer) return mixer->plugin->open(mixer); } -bool mixer_control(struct mixer *mixer, int cmd, void *arg) -{ - assert(mixer != NULL && mixer->plugin != NULL); - return mixer->plugin->control(mixer, cmd, arg); -} - void mixer_close(struct mixer *mixer) { assert(mixer != NULL && mixer->plugin != NULL); |