[Freeswitch-svn] [commit] r11484 - freeswitch/trunk/src

FreeSWITCH SVN brian at freeswitch.org
Sat Jan 24 17:40:51 PST 2009


Author: brian
Date: Sat Jan 24 19:40:50 2009
New Revision: 11484

Log:
temp fix for 8k to 48k popping.

Modified:
   freeswitch/trunk/src/switch_resample.c

Modified: freeswitch/trunk/src/switch_resample.c
==============================================================================
--- freeswitch/trunk/src/switch_resample.c	(original)
+++ freeswitch/trunk/src/switch_resample.c	Sat Jan 24 19:40:50 2009
@@ -137,9 +137,9 @@
 			s[i] = (short) (ft - 0.5);
 		}
 		if ((float) s[i] > MAXSAMPLE)
-			s[i] = (short) MAXSAMPLE;
+			s[i] = (short) MAXSAMPLE / 2;
 		if (s[i] < (short) -MAXSAMPLE)
-			s[i] = (short) -MAXSAMPLE;
+			s[i] = (short) -MAXSAMPLE / 2;
 	}
 	return len;
 }



More information about the Freeswitch-svn mailing list