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.
This commit is contained in:
Max Kellermann
2013-12-23 09:04:31 +01:00
parent d7b9886387
commit 2d1a3073f6
7 changed files with 57 additions and 9 deletions

View File

@@ -20,7 +20,7 @@
#include "config.h"
#include "FormatConverter.hxx"
#include "PcmFormat.hxx"
#include "PcmConvert.hxx"
#include "Domain.hxx"
#include "util/ConstBuffer.hxx"
#include "util/Error.hxx"
@@ -93,7 +93,7 @@ PcmFormatConverter::Convert(ConstBuffer<void> src, Error &error)
}
if (result == nullptr) {
error.Format(pcm_convert_domain,
error.Format(pcm_domain,
"PCM conversion from %s to %s is not implemented",
sample_format_to_string(src_format),
sample_format_to_string(dest_format));