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

FreeSWITCH SVN mikej at freeswitch.org
Mon Feb 2 08:54:17 PST 2009


Author: mikej
Date: Mon Feb  2 10:54:17 2009
New Revision: 11594

Log:
fix windows build

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	Mon Feb  2 10:54:17 2009
@@ -234,11 +234,11 @@
 
 	assert(divisor);
 
-	rnd2 = (int16_t) (intptr_t) &data + switch_epoch_time_now(NULL);
+	rnd2 = (int16_t) (intptr_t) (&data + switch_epoch_time_now(NULL));
 
 	for (i = 0; i < samples; i++, sum_rnd = 0) {
 		for (x = 0; x < 10; x++) {
-			rnd += ((x + i) * rnd2);
+			rnd += (int16_t)((x + i) * rnd2);
 			sum_rnd += rnd;
 		}
 		switch_normalize_to_16bit(sum_rnd);



More information about the Freeswitch-svn mailing list