[Freeswitch-svn] [commit] r5989 - in freeswitch/trunk/src: . mod/applications/mod_rss mod/languages/mod_spidermonkey

Freeswitch SVN anthm at freeswitch.org
Thu Oct 18 23:42:02 EDT 2007


Author: anthm
Date: Thu Oct 18 23:42:02 2007
New Revision: 5989

Modified:
   freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c
   freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
   freeswitch/trunk/src/switch_ivr_play_say.c

Log:
more of the same

Modified: freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_rss/mod_rss.c	Thu Oct 18 23:42:02 2007
@@ -236,7 +236,7 @@
 	}
 
 	if (codec) {
-		rate = codec->implementation->samples_per_second;
+		rate = codec->implementation->actual_samples_per_second;
 	} else {
 		switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Codec Error!\n");
 		return;

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c	Thu Oct 18 23:42:02 2007
@@ -1663,7 +1663,7 @@
 	int interval = 0;
 
 	read_codec = switch_core_session_get_read_codec(jss->session);
-	rate = read_codec->implementation->samples_per_second;
+	rate = read_codec->implementation->actual_samples_per_second;
 	interval = read_codec->implementation->microseconds_per_frame / 1000;
 
 	if (switch_core_codec_init(&jss->speech->codec,

Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c	(original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c	Thu Oct 18 23:42:02 2007
@@ -1533,7 +1533,7 @@
 	switch_core_session_reset(session);
 	read_codec = switch_core_session_get_read_codec(session);
 	
-	rate = read_codec->implementation->samples_per_second;
+	rate = read_codec->implementation->actual_samples_per_second;
 	interval = read_codec->implementation->microseconds_per_frame / 1000;
 	
 	if (need_create) {



More information about the Freeswitch-svn mailing list