diff options
Diffstat (limited to '')
-rw-r--r-- | src/pcm_channels.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/pcm_channels.c b/src/pcm_channels.c index fca889c93..327f46aac 100644 --- a/src/pcm_channels.c +++ b/src/pcm_channels.c @@ -18,10 +18,14 @@ #include "pcm_channels.h" #include "utils.h" -#include "log.h" + +#include <glib.h> #include <assert.h> +#undef G_LOG_DOMAIN +#define G_LOG_DOMAIN "pcm" + static void pcm_convert_channels_16_1_to_2(int16_t *dest, const int16_t *src, unsigned num_frames) @@ -93,8 +97,8 @@ pcm_convert_channels_16(int8_t dest_channels, pcm_convert_channels_16_n_to_2(buf, src_channels, src, num_frames); else { - ERROR("conversion %u->%u channels is not supported\n", - src_channels, dest_channels); + g_warning("conversion %u->%u channels is not supported", + src_channels, dest_channels); return NULL; } @@ -172,8 +176,8 @@ pcm_convert_channels_24(int8_t dest_channels, pcm_convert_channels_24_n_to_2(buf, src_channels, src, num_frames); else { - ERROR("conversion %u->%u channels is not supported\n", - src_channels, dest_channels); + g_warning("conversion %u->%u channels is not supported", + src_channels, dest_channels); return NULL; } |