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

FreeSWITCH SVN anthm at freeswitch.org
Mon Dec 22 13:17:41 PST 2008


Author: anthm
Date: Mon Dec 22 16:17:41 2008
New Revision: 10913

Log:
update

Modified:
   freeswitch/trunk/src/switch_pcm.c

Modified: freeswitch/trunk/src/switch_pcm.c
==============================================================================
--- freeswitch/trunk/src/switch_pcm.c	(original)
+++ freeswitch/trunk/src/switch_pcm.c	Mon Dec 22 16:17:41 2008
@@ -422,11 +422,11 @@
 	}
 
 
-	samples_per_frame = 8;
-	bytes_per_frame = 16;
+	samples_per_frame = 16;
+	bytes_per_frame = 32;
 	ms_per_frame = 2000;
 
-	for (x = 0; x < 5; x++) {
+	for (x = 0; x < 4; x++) {
 		switch_core_codec_add_implementation(pool, codec_interface,
 											 SWITCH_CODEC_TYPE_AUDIO,	/* enumeration defining the type of the codec */
 											 10, 						/* the IANA code number */
@@ -446,19 +446,19 @@
 											 switch_raw_decode,			/* function to decode encoded data into raw data */
 											 switch_raw_destroy);		/* deinitalize a codec handle using this implementation */
 		
-		samples_per_frame += 8;
-		bytes_per_frame += 16;
+		samples_per_frame += 16;
+		bytes_per_frame += 32;
 		ms_per_frame += 2000;
 		
 	}
 
 
 
-	samples_per_frame = 16;
-	bytes_per_frame = 32;
+	samples_per_frame = 32;
+	bytes_per_frame = 64;
 	ms_per_frame = 2000;
 
-	for (x = 0; x < 5; x++) {
+	for (x = 0; x < 4; x++) {
 		switch_core_codec_add_implementation(pool, codec_interface,
 											 SWITCH_CODEC_TYPE_AUDIO,	/* enumeration defining the type of the codec */
 											 10, 						/* the IANA code number */
@@ -478,18 +478,18 @@
 											 switch_raw_decode,			/* function to decode encoded data into raw data */
 											 switch_raw_destroy);		/* deinitalize a codec handle using this implementation */
 		
-		samples_per_frame += 16;
-		bytes_per_frame += 32;
+		samples_per_frame += 32;
+		bytes_per_frame += 64;
 		ms_per_frame += 2000;
 		
 	}
 
 
-	samples_per_frame = 32;
-	bytes_per_frame = 64;
+	samples_per_frame = 64;
+	bytes_per_frame = 128;
 	ms_per_frame = 2000;
 	
-	for (x = 0; x < 5; x++) {
+	for (x = 0; x < 4; x++) {
 		switch_core_codec_add_implementation(pool, codec_interface,
 											 SWITCH_CODEC_TYPE_AUDIO,	/* enumeration defining the type of the codec */
 											 10, 						/* the IANA code number */
@@ -509,8 +509,8 @@
 											 switch_raw_decode,			/* function to decode encoded data into raw data */
 											 switch_raw_destroy);		/* deinitalize a codec handle using this implementation */
 		
-		samples_per_frame += 32;
-		bytes_per_frame += 64;
+		samples_per_frame += 64;
+		bytes_per_frame += 128;
 		ms_per_frame += 2000;
 		
 	}



More information about the Freeswitch-svn mailing list