From d9c32155844a7c01c33854679f03340f49160a29 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 20 Feb 2019 19:23:11 +0100 Subject: [PATCH] mixer/pulse: rename `scale` to `scale_volume` Make it less generic, to avoid clashes. --- NEWS | 2 ++ doc/plugins.rst | 2 +- src/mixer/plugins/PulseMixerPlugin.cxx | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 16a47f770..3faed0de3 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,8 @@ ver 0.21.5 (not yet released) - ape: map "Album Artist" * output - shout: add support for TLS +* mixer + - pulse: add "scale_volume" setting ver 0.21.4 (2019/01/04) * database diff --git a/doc/plugins.rst b/doc/plugins.rst index 5b39069cb..3b16096d0 100644 --- a/doc/plugins.rst +++ b/doc/plugins.rst @@ -935,7 +935,7 @@ The pulse plugin connects to a `PulseAudio 5.0) - throw FormatRuntimeError("scale \"%s\" is not a number in the " + throw FormatRuntimeError("\"%s\" is not a number in the " "range 0.5 to 5.0", value); @@ -187,7 +187,7 @@ pulse_mixer_init(gcc_unused EventLoop &event_loop, AudioOutput &ao, const ConfigBlock &block) { PulseOutput &po = (PulseOutput &)ao; - float scale = parse_volume_scale_factor(block.GetBlockValue("scale")); + float scale = parse_volume_scale_factor(block.GetBlockValue("scale_volume")); PulseMixer *pm = new PulseMixer(po, listener, scale); pulse_output_set_mixer(po, *pm);