summaryrefslogtreecommitdiff
path: root/src/filter
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-08-07 18:27:00 +0200
committerMax Kellermann <max@musicpd.org>2017-08-07 18:27:00 +0200
commita3d71f4b9105b7fbc3a2c8f70ff95017710b79f0 (patch)
treebaaeb6e2af061faadc44b93ee75d904cc8f10031 /src/filter
parent9250819b759db90e58d75f9c9eb09d92ee23635b (diff)
filter/Convert: add convert_filter_prepare()
Diffstat (limited to 'src/filter')
-rw-r--r--src/filter/plugins/ConvertFilterPlugin.cxx6
-rw-r--r--src/filter/plugins/ConvertFilterPlugin.hxx4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/filter/plugins/ConvertFilterPlugin.cxx b/src/filter/plugins/ConvertFilterPlugin.cxx
index 1ede2c03e..260e826f6 100644
--- a/src/filter/plugins/ConvertFilterPlugin.cxx
+++ b/src/filter/plugins/ConvertFilterPlugin.cxx
@@ -132,6 +132,12 @@ const FilterPlugin convert_filter_plugin = {
convert_filter_init,
};
+PreparedFilter *
+convert_filter_prepare() noexcept
+{
+ return new PreparedConvertFilter();
+}
+
Filter *
convert_filter_new(const AudioFormat in_audio_format,
const AudioFormat out_audio_format)
diff --git a/src/filter/plugins/ConvertFilterPlugin.hxx b/src/filter/plugins/ConvertFilterPlugin.hxx
index bd6069330..469271c93 100644
--- a/src/filter/plugins/ConvertFilterPlugin.hxx
+++ b/src/filter/plugins/ConvertFilterPlugin.hxx
@@ -20,9 +20,13 @@
#ifndef MPD_CONVERT_FILTER_PLUGIN_HXX
#define MPD_CONVERT_FILTER_PLUGIN_HXX
+class PreparedFilter;
class Filter;
struct AudioFormat;
+PreparedFilter *
+convert_filter_prepare() noexcept;
+
Filter *
convert_filter_new(AudioFormat in_audio_format,
AudioFormat out_audio_format);