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

FreeSWITCH SVN mikej at freeswitch.org
Fri Dec 5 11:14:30 PST 2008


Author: mikej
Date: Fri Dec  5 14:14:29 2008
New Revision: 10625

Log:
FSCORE-245 fix windows build in switch_generate_sln_silence

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	Fri Dec  5 14:14:29 2008
@@ -209,11 +209,11 @@
 
 	assert(divisor);
 
-	rnd2 = (int16_t) (intptr_t) &data + switch_timestamp(NULL);
+	rnd2 = (int16_t) (intptr_t) &data + (int16_t)switch_timestamp(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