summaryrefslogtreecommitdiffstats
path: root/audio/mixer.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-02-27 01:07:46 +0100
committerwm4 <wm4@nowhere>2014-02-27 01:07:46 +0100
commit14607f27ef01c81e4544d0eaa7ed182001c15305 (patch)
tree73c18acabeef92272543af8be450c7bf9738e02a /audio/mixer.h
parentb4fb71634cf746cfd9ba19c1260dbc0aee38700e (diff)
downloadmpv-14607f27ef01c81e4544d0eaa7ed182001c15305.tar.bz2
mpv-14607f27ef01c81e4544d0eaa7ed182001c15305.tar.xz
command: use the step size for "add volume" commands
The step argument for "add volume <step>" was ignored until now. Fix it. There is one problem: by defualt, "add volume" should use the value set with --volstep. This value is 3 by default. Since the default volue for the step argument is always 1 (and we don't really want to make the generic code more complicated by introducing custom step sizes), we simply multiply the step argument with --volstep to keep it compatible. The --volstep option should probably be just removed in the future.
Diffstat (limited to 'audio/mixer.h')
-rw-r--r--audio/mixer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/audio/mixer.h b/audio/mixer.h
index 7a14e0b23e..d5ec07e9ba 100644
--- a/audio/mixer.h
+++ b/audio/mixer.h
@@ -39,8 +39,7 @@ void mixer_uninit_audio(struct mixer *mixer);
bool mixer_audio_initialized(struct mixer *mixer);
void mixer_getvolume(struct mixer *mixer, float *l, float *r);
void mixer_setvolume(struct mixer *mixer, float l, float r);
-void mixer_incvolume(struct mixer *mixer);
-void mixer_decvolume(struct mixer *mixer);
+void mixer_addvolume(struct mixer *mixer, float step);
void mixer_getbothvolume(struct mixer *mixer, float *b);
void mixer_setmute(struct mixer *mixer, bool mute);
bool mixer_getmute(struct mixer *mixer);