summaryrefslogtreecommitdiff
path: root/modules/g722
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-04-12 21:19:28 +0200
committerAlfred E. Heggestad <aeh@db.org>2014-04-12 21:19:28 +0200
commitac32d6f03bd54b5a87ceb36b48832501c034ff51 (patch)
tree472cdefd27086a4a3ad21d11a7515ae7935bf79d /modules/g722
parent096d7d04150eaa45c09e831aa98de1621c37a41d (diff)
modules: use new logging functions
Diffstat (limited to 'modules/g722')
-rw-r--r--modules/g722/g722.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/modules/g722/g722.c b/modules/g722/g722.c
index 5e07e3a..e68b7bd 100644
--- a/modules/g722/g722.c
+++ b/modules/g722/g722.c
@@ -12,11 +12,6 @@
#include <spandsp.h>
-#define DEBUG_MODULE "g722"
-#define DEBUG_LEVEL 5
-#include <re_dbg.h>
-
-
/*
http://www.soft-switch.org/spandsp-modules.html
*/
@@ -76,7 +71,6 @@ static int encode_update(struct auenc_state **aesp,
return ENOMEM;
if (!g722_encode_init(&st->enc, G722_BITRATE_64k, 0)) {
- DEBUG_WARNING("g722_encode_init failed\n");
err = EPROTO;
goto out;
}
@@ -109,7 +103,6 @@ static int decode_update(struct audec_state **adsp,
return ENOMEM;
if (!g722_decode_init(&st->dec, G722_BITRATE_64k, 0)) {
- DEBUG_WARNING("g722_decode_init failed\n");
err = EPROTO;
goto out;
}
@@ -131,11 +124,9 @@ static int encode(struct auenc_state *st, uint8_t *buf, size_t *len,
n = g722_encode(&st->enc, buf, sampv, (int)sampc);
if (n <= 0) {
- DEBUG_WARNING("g722_encode: len=%d\n", n);
return EPROTO;
}
else if (n > (int)*len) {
- DEBUG_WARNING("encode: wrote %d > %d buf\n", n, *len);
return EOVERFLOW;
}
@@ -154,10 +145,8 @@ static int decode(struct audec_state *st, int16_t *sampv, size_t *sampc,
return EINVAL;
n = g722_decode(&st->dec, sampv, buf, (int)len);
- if (n < 0) {
- DEBUG_WARNING("g722_decode: n=%d\n", n);
+ if (n < 0)
return EPROTO;
- }
*sampc = n;