aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-04 13:38:13 +0200
committerMax Kellermann <max@duempel.org>2013-08-04 14:07:50 +0200
commitf54bcc1f16f815fb507ac8a8ffd7913f686969d2 (patch)
tree94bfc2ab6640e54fd28e2518c7820ccb89933d7a /src/mixer
parentca0d09c50fc4246fdae67b8a33799ea580b68593 (diff)
downloadmpd-f54bcc1f16f815fb507ac8a8ffd7913f686969d2.tar.gz
mpd-f54bcc1f16f815fb507ac8a8ffd7913f686969d2.tar.xz
mpd-f54bcc1f16f815fb507ac8a8ffd7913f686969d2.zip
FilterPlugin: pass config_param reference
Diffstat (limited to 'src/mixer')
-rw-r--r--src/mixer/SoftwareMixerPlugin.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mixer/SoftwareMixerPlugin.cxx b/src/mixer/SoftwareMixerPlugin.cxx
index 88702310c..bb0b890ca 100644
--- a/src/mixer/SoftwareMixerPlugin.cxx
+++ b/src/mixer/SoftwareMixerPlugin.cxx
@@ -25,6 +25,7 @@
#include "FilterInternal.hxx"
#include "filter/VolumeFilterPlugin.hxx"
#include "pcm/PcmVolume.hxx"
+#include "ConfigData.hxx"
#include <assert.h>
#include <math.h>
@@ -36,7 +37,8 @@ struct SoftwareMixer final : public Mixer {
SoftwareMixer()
:Mixer(software_mixer_plugin),
- filter(filter_new(&volume_filter_plugin, nullptr, nullptr)),
+ filter(filter_new(&volume_filter_plugin, config_param(),
+ nullptr)),
volume(100)
{
assert(filter != nullptr);