[asterisk-commits] russell: trunk r95746 - /trunk/res/libresample/src/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 1 22:33:54 CST 2008


Author: russell
Date: Tue Jan  1 22:33:53 2008
New Revision: 95746

URL: http://svn.digium.com/view/asterisk?view=rev&rev=95746
Log:
Don't make libresample print out debugging output

Modified:
    trunk/res/libresample/src/resample.c
    trunk/res/libresample/src/resample_defs.h

Modified: trunk/res/libresample/src/resample.c
URL: http://svn.digium.com/view/asterisk/trunk/res/libresample/src/resample.c?view=diff&rev=95746&r1=95745&r2=95746
==============================================================================
--- trunk/res/libresample/src/resample.c (original)
+++ trunk/res/libresample/src/resample.c Tue Jan  1 22:33:53 2008
@@ -87,7 +87,7 @@
 
    /* 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 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 @@
    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",

Modified: trunk/res/libresample/src/resample_defs.h
URL: http://svn.digium.com/view/asterisk/trunk/res/libresample/src/resample_defs.h?view=diff&rev=95746&r1=95745&r2=95746
==============================================================================
--- trunk/res/libresample/src/resample_defs.h (original)
+++ trunk/res/libresample/src/resample_defs.h Tue Jan  1 22:33:53 2008
@@ -19,8 +19,6 @@
 #include "config.h"
 #endif
 #endif
-
-#define DEBUG 0
 
 #ifndef TRUE
 #define TRUE  1




More information about the asterisk-commits mailing list