aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 04:33:53 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-02 04:33:53 +0000
commitb68637439fbb067eb0821b761aac503009a03aec (patch)
treeeb95e6822e8fe2ea08ef3706ee31e3ff60e4eccf /res
parentdd196819205b16d6283920776645d63872c71ab8 (diff)
Don't make libresample print out debugging output
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95746 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/libresample/src/resample.c6
-rw-r--r--res/libresample/src/resample_defs.h2
2 files changed, 3 insertions, 5 deletions
diff --git a/res/libresample/src/resample.c b/res/libresample/src/resample.c
index 405bdd9d8..9dba5af96 100644
--- a/res/libresample/src/resample.c
+++ b/res/libresample/src/resample.c
@@ -87,7 +87,7 @@ void *resample_open(int highQuality, double minFactor, double maxFactor)
/* Just exit if we get invalid factors */
if (minFactor <= 0.0 || maxFactor <= 0.0 || maxFactor < minFactor) {
- #if DEBUG
+ #ifdef DEBUG
fprintf(stderr,
"libresample: "
"minFactor and maxFactor must be positive real numbers,\n"
@@ -187,7 +187,7 @@ int resample_process(void *handle,
int Nx;
int i, len;
- #if DEBUG
+ #ifdef DEBUG
fprintf(stderr, "resample_process: in=%d, out=%d lastFlag=%d\n",
inBufferLen, outBufferLen, lastFlag);
#endif
@@ -197,7 +197,7 @@ int resample_process(void *handle,
outSampleCount = 0;
if (factor < hp->minFactor || factor > hp->maxFactor) {
- #if DEBUG
+ #ifdef DEBUG
fprintf(stderr,
"libresample: factor %f is not between "
"minFactor=%f and maxFactor=%f",
diff --git a/res/libresample/src/resample_defs.h b/res/libresample/src/resample_defs.h
index f1b10d432..a0e7afc37 100644
--- a/res/libresample/src/resample_defs.h
+++ b/res/libresample/src/resample_defs.h
@@ -20,8 +20,6 @@
#endif
#endif
-#define DEBUG 0
-
#ifndef TRUE
#define TRUE 1
#endif