]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
more codec docs
authorBrian West <brian@freeswitch.org>
Wed, 17 Dec 2008 03:42:56 +0000 (03:42 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 17 Dec 2008 03:42:56 +0000 (03:42 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10844 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_amr/mod_amr.c

index ed4bd7089ca78048f48caa3f94a8cab767cc37a4..8d637b96f7e77af264ce63910b4fc4f36af7c08c 100644 (file)
@@ -320,8 +320,24 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_amr_load)
 
        SWITCH_ADD_CODEC(codec_interface, "AMR");
        switch_core_codec_add_implementation(pool, codec_interface,
-                                                                                SWITCH_CODEC_TYPE_AUDIO, 96, "AMR", "octet-align=0", 8000, 8000, 12200, 20000, 160, 320, 0, 1, 1, 
-                                                                                switch_amr_init, switch_amr_encode, switch_amr_decode, switch_amr_destroy);
+                                                                                SWITCH_CODEC_TYPE_AUDIO,       /* enumeration defining the type of the codec */
+                                                                                96,                                            /* the IANA code number */
+                                                                                "AMR",                                         /* the IANA code name */
+                                                                                "octet-align=0",                       /* default fmtp to send (can be overridden by the init function) */
+                                                                                8000,                                          /* samples transferred per second */
+                                                                                8000,                                          /* actual samples transferred per second */
+                                                                                12200,                                         /* bits transferred per second */
+                                                                                20000,                                         /* number of microseconds per frame */
+                                                                                160,                                           /* number of samples per frame */
+                                                                                320,                                           /* number of bytes per frame decompressed */
+                                                                                0,                                                     /* number of bytes per frame compressed */
+                                                                                1,                                                     /* number of channels represented */
+                                                                                1,                                             /* number of frames per network packet */
+                                                                                switch_amr_init,                       /* function to initialize a codec handle using this implementation */
+                                                                                switch_amr_encode,                     /* function to encode raw data into encoded data */
+                                                                                switch_amr_decode,                     /* function to decode encoded data into raw data */
+                                                                                switch_amr_destroy);           /* deinitalize a codec handle using this implementation */
+
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
 }