aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmConvert.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-23 09:04:31 +0100
committerMax Kellermann <max@duempel.org>2013-12-23 10:35:19 +0100
commit2d1a3073f63604a452e559ff8322520af98a4b65 (patch)
tree55e8892ec78eda8023f4434f3bafb4ab977c8fa5 /src/pcm/PcmConvert.cxx
parentd7b988638722d245152b108456af1aad8fc9b8a0 (diff)
downloadmpd-2d1a3073f63604a452e559ff8322520af98a4b65.tar.gz
mpd-2d1a3073f63604a452e559ff8322520af98a4b65.tar.xz
mpd-2d1a3073f63604a452e559ff8322520af98a4b65.zip
pcm/PcmConvert: move the Domain instance to Domain.cxx
Rename pcm_convert_domain to pcm_domain. Move it out so we can use it without depending on the whole PcmConvert library.
Diffstat (limited to 'src/pcm/PcmConvert.cxx')
-rw-r--r--src/pcm/PcmConvert.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pcm/PcmConvert.cxx b/src/pcm/PcmConvert.cxx
index 5501d8ddf..6eecd3b01 100644
--- a/src/pcm/PcmConvert.cxx
+++ b/src/pcm/PcmConvert.cxx
@@ -19,6 +19,7 @@
#include "config.h"
#include "PcmConvert.hxx"
+#include "Domain.hxx"
#include "ConfiguredResampler.hxx"
#include "AudioFormat.hxx"
#include "util/ConstBuffer.hxx"
@@ -29,8 +30,6 @@
#include <assert.h>
#include <math.h>
-const Domain pcm_convert_domain("pcm_convert");
-
bool
pcm_convert_global_init(Error &error)
{
@@ -131,7 +130,7 @@ PcmConvert::Convert(const void *src, size_t src_size,
auto d = dsd.ToFloat(format.channels,
false, s);
if (d.IsNull()) {
- error.Set(pcm_convert_domain,
+ error.Set(pcm_domain,
"DSD to PCM conversion failed");
return nullptr;
}