PcmConvert: add pcm_convert_global_init()

Wrapper for pcm_resample_global_init(), just in case other PCM
libraries need initialization, too.
This commit is contained in:
Max Kellermann 2013-11-29 10:06:20 +01:00
parent 71bc15aca1
commit 1a002eb23d
3 changed files with 11 additions and 2 deletions

View File

@ -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;
}

View File

@ -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

View File

@ -110,4 +110,7 @@ private:
extern const Domain pcm_convert_domain;
bool
pcm_convert_global_init(Error &error);
#endif