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:
parent
71bc15aca1
commit
1a002eb23d
@ -54,7 +54,7 @@
|
|||||||
#include "ZeroconfGlue.hxx"
|
#include "ZeroconfGlue.hxx"
|
||||||
#include "DecoderList.hxx"
|
#include "DecoderList.hxx"
|
||||||
#include "AudioConfig.hxx"
|
#include "AudioConfig.hxx"
|
||||||
#include "pcm/PcmResample.hxx"
|
#include "pcm/PcmConvert.hxx"
|
||||||
#include "Daemon.hxx"
|
#include "Daemon.hxx"
|
||||||
#include "system/FatalError.hxx"
|
#include "system/FatalError.hxx"
|
||||||
#include "util/Error.hxx"
|
#include "util/Error.hxx"
|
||||||
@ -428,7 +428,7 @@ int mpd_main(int argc, char *argv[])
|
|||||||
archive_plugin_init_all();
|
archive_plugin_init_all();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (!pcm_resample_global_init(error)) {
|
if (!pcm_convert_global_init(error)) {
|
||||||
LogError(error);
|
LogError(error);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,12 @@
|
|||||||
|
|
||||||
const Domain pcm_convert_domain("pcm_convert");
|
const Domain pcm_convert_domain("pcm_convert");
|
||||||
|
|
||||||
|
bool
|
||||||
|
pcm_convert_global_init(Error &error)
|
||||||
|
{
|
||||||
|
return pcm_resample_global_init(error);
|
||||||
|
}
|
||||||
|
|
||||||
PcmConvert::PcmConvert()
|
PcmConvert::PcmConvert()
|
||||||
{
|
{
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
|
@ -110,4 +110,7 @@ private:
|
|||||||
|
|
||||||
extern const Domain pcm_convert_domain;
|
extern const Domain pcm_convert_domain;
|
||||||
|
|
||||||
|
bool
|
||||||
|
pcm_convert_global_init(Error &error);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user