diff options
author | Max Kellermann <max@duempel.org> | 2008-12-29 17:28:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-29 17:28:49 +0100 |
commit | e0fe4eb722ac3115ca74080cf100641a91d13236 (patch) | |
tree | 2e46449231d9dfc7da66e427e23cd470855c0e44 /src/pcm_channels.c | |
parent | f4ce43b958719604364c5a840a03781e9ea0ca72 (diff) |
pcm: use GLib logging
Diffstat (limited to 'src/pcm_channels.c')
-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; } |