Commit 1a002eb2 authored by Max Kellermann's avatar Max Kellermann

PcmConvert: add pcm_convert_global_init()

Wrapper for pcm_resample_global_init(), just in case other PCM libraries need initialization, too.
parent 71bc15ac
......@@ -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;
}
......
......@@ -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
......
......@@ -110,4 +110,7 @@ private:
extern const Domain pcm_convert_domain;
bool
pcm_convert_global_init(Error &error);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment