[Freeswitch-svn] [commit] r7646 - freeswitch/trunk/src/mod/codecs/mod_l16

Freeswitch SVN brian at freeswitch.org
Sat Feb 16 15:33:19 EST 2008


Author: brian
Date: Sat Feb 16 15:33:18 2008
New Revision: 7646

Modified:
   freeswitch/trunk/src/mod/codecs/mod_l16/mod_l16.c

Log:
these rates are for file playing and not voip related

Modified: freeswitch/trunk/src/mod/codecs/mod_l16/mod_l16.c
==============================================================================
--- freeswitch/trunk/src/mod/codecs/mod_l16/mod_l16.c	(original)
+++ freeswitch/trunk/src/mod/codecs/mod_l16/mod_l16.c	Sat Feb 16 15:33:18 2008
@@ -109,12 +109,17 @@
         bpf = bpf * 2;
         ebpf = ebpf * 2;
     }
+	/* these formats below are for file playing. */
 
     switch_core_codec_add_implementation(pool, codec_interface,
                                          SWITCH_CODEC_TYPE_AUDIO, 118, "L16", NULL, 22050, 22050, 352800,
                                          20000, 441, 882, 882, 1, 1, 1,
                                          switch_raw_init, switch_raw_encode, switch_raw_decode, switch_raw_destroy);
-    
+
+    switch_core_codec_add_implementation(pool, codec_interface,
+                                         SWITCH_CODEC_TYPE_AUDIO, 118, "L16", NULL, 11025, 11025, 176400,
+                                         40000, 441, 882, 882, 1, 1, 1,
+                                         switch_raw_init, switch_raw_encode, switch_raw_decode, switch_raw_destroy);
     
 	/* indicate that the module should continue to be loaded */
 	return SWITCH_STATUS_SUCCESS;



More information about the Freeswitch-svn mailing list