Don't make libresample print out debugging output
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95746 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
parent
a9162a1ab3
commit
04db372bf3
|
@ -87,7 +87,7 @@ void *resample_open(int highQuality, double minFactor, double maxFactor)
|
||||||
|
|
||||||
/* Just exit if we get invalid factors */
|
/* Just exit if we get invalid factors */
|
||||||
if (minFactor <= 0.0 || maxFactor <= 0.0 || maxFactor < minFactor) {
|
if (minFactor <= 0.0 || maxFactor <= 0.0 || maxFactor < minFactor) {
|
||||||
#if DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"libresample: "
|
"libresample: "
|
||||||
"minFactor and maxFactor must be positive real numbers,\n"
|
"minFactor and maxFactor must be positive real numbers,\n"
|
||||||
|
@ -187,7 +187,7 @@ int resample_process(void *handle,
|
||||||
int Nx;
|
int Nx;
|
||||||
int i, len;
|
int i, len;
|
||||||
|
|
||||||
#if DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "resample_process: in=%d, out=%d lastFlag=%d\n",
|
fprintf(stderr, "resample_process: in=%d, out=%d lastFlag=%d\n",
|
||||||
inBufferLen, outBufferLen, lastFlag);
|
inBufferLen, outBufferLen, lastFlag);
|
||||||
#endif
|
#endif
|
||||||
|
@ -197,7 +197,7 @@ int resample_process(void *handle,
|
||||||
outSampleCount = 0;
|
outSampleCount = 0;
|
||||||
|
|
||||||
if (factor < hp->minFactor || factor > hp->maxFactor) {
|
if (factor < hp->minFactor || factor > hp->maxFactor) {
|
||||||
#if DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"libresample: factor %f is not between "
|
"libresample: factor %f is not between "
|
||||||
"minFactor=%f and maxFactor=%f",
|
"minFactor=%f and maxFactor=%f",
|
||||||
|
|
|
@ -20,8 +20,6 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEBUG 0
|
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue