aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/PcmResampleLibsamplerate.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm/PcmResampleLibsamplerate.cxx')
-rw-r--r--src/pcm/PcmResampleLibsamplerate.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pcm/PcmResampleLibsamplerate.cxx b/src/pcm/PcmResampleLibsamplerate.cxx
index 1ab9b1953..2ffe4b8c4 100644
--- a/src/pcm/PcmResampleLibsamplerate.cxx
+++ b/src/pcm/PcmResampleLibsamplerate.cxx
@@ -21,6 +21,7 @@
#include "PcmResampleInternal.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
+#include "Log.hxx"
#include <glib.h>
@@ -28,9 +29,6 @@
#include <stdlib.h>
#include <string.h>
-#undef G_LOG_DOMAIN
-#define G_LOG_DOMAIN "pcm"
-
static int lsr_converter = SRC_SINC_FASTEST;
static constexpr Domain libsamplerate_domain("libsamplerate");
@@ -74,8 +72,9 @@ pcm_resample_lsr_global_init(const char *converter, Error &error)
return false;
}
- g_debug("libsamplerate converter '%s'",
- src_get_name(lsr_converter));
+ FormatDebug(libsamplerate_domain,
+ "libsamplerate converter '%s'",
+ src_get_name(lsr_converter));
return true;
}
@@ -133,8 +132,9 @@ pcm_resample_set(PcmResampler *state,
SRC_DATA *data = &state->data;
data->src_ratio = (double)dest_rate / (double)src_rate;
- g_debug("setting samplerate conversion ratio to %.2lf",
- data->src_ratio);
+ FormatDebug(libsamplerate_domain,
+ "setting samplerate conversion ratio to %.2lf",
+ data->src_ratio);
src_set_ratio(state->state, data->src_ratio);
return true;