diff --git a/src/Main.cxx b/src/Main.cxx index dcf080d0d..9a70b0015 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -54,7 +54,7 @@ #include "ZeroconfGlue.hxx" #include "DecoderList.hxx" #include "AudioConfig.hxx" -#include "pcm/PcmResample.hxx" +#include "pcm/PcmConvert.hxx" #include "Daemon.hxx" #include "system/FatalError.hxx" #include "util/Error.hxx" @@ -428,7 +428,7 @@ int mpd_main(int argc, char *argv[]) archive_plugin_init_all(); #endif - if (!pcm_resample_global_init(error)) { + if (!pcm_convert_global_init(error)) { LogError(error); return EXIT_FAILURE; } diff --git a/src/pcm/PcmConvert.cxx b/src/pcm/PcmConvert.cxx index 05ed92faf..f1e36ed4b 100644 --- a/src/pcm/PcmConvert.cxx +++ b/src/pcm/PcmConvert.cxx @@ -30,6 +30,12 @@ const Domain pcm_convert_domain("pcm_convert"); +bool +pcm_convert_global_init(Error &error) +{ + return pcm_resample_global_init(error); +} + PcmConvert::PcmConvert() { #ifndef NDEBUG diff --git a/src/pcm/PcmConvert.hxx b/src/pcm/PcmConvert.hxx index 0672c2955..2db24f87b 100644 --- a/src/pcm/PcmConvert.hxx +++ b/src/pcm/PcmConvert.hxx @@ -110,4 +110,7 @@ private: extern const Domain pcm_convert_domain; +bool +pcm_convert_global_init(Error &error); + #endif