aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer_all.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-06 21:51:24 +0200
committerMax Kellermann <max@duempel.org>2009-07-06 21:51:24 +0200
commit90472526e00c671f76d78341b5e474fcf069d41e (patch)
tree1599ac0a94d11867558e0cb38ca2eaf3b3831848 /src/mixer_all.c
parent206392ad1a9f4aa22d11719fb19f036c9f860272 (diff)
downloadmpd-90472526e00c671f76d78341b5e474fcf069d41e.tar.gz
mpd-90472526e00c671f76d78341b5e474fcf069d41e.tar.xz
mpd-90472526e00c671f76d78341b5e474fcf069d41e.zip
volume, mixer: removed the "relative" parameter
Since the "volume" command has been removed, nobody uses relative volumes anymore.
Diffstat (limited to 'src/mixer_all.c')
-rw-r--r--src/mixer_all.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/mixer_all.c b/src/mixer_all.c
index 252cb61ab..21ff44c35 100644
--- a/src/mixer_all.c
+++ b/src/mixer_all.c
@@ -70,7 +70,7 @@ mixer_all_get_volume(void)
}
static bool
-output_mixer_set_volume(unsigned i, int volume, bool relative)
+output_mixer_set_volume(unsigned i, int volume)
{
struct audio_output *output;
struct mixer *mixer;
@@ -85,14 +85,6 @@ output_mixer_set_volume(unsigned i, int volume, bool relative)
if (mixer == NULL)
return false;
- if (relative) {
- int prev = mixer_get_volume(mixer);
- if (prev < 0)
- return false;
-
- volume += prev;
- }
-
if (volume > 100)
volume = 100;
else if (volume < 0)
@@ -102,13 +94,13 @@ output_mixer_set_volume(unsigned i, int volume, bool relative)
}
bool
-mixer_all_set_volume(int volume, bool relative)
+mixer_all_set_volume(int volume)
{
bool success = false;
unsigned count = audio_output_count();
for (unsigned i = 0; i < count; i++)
- success = output_mixer_set_volume(i, volume, relative)
+ success = output_mixer_set_volume(i, volume)
|| success;
return success;