]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
some notes for later
authorBrian West <brian@freeswitch.org>
Wed, 30 Aug 2006 05:16:12 +0000 (05:16 +0000)
committerBrian West <brian@freeswitch.org>
Wed, 30 Aug 2006 05:16:12 +0000 (05:16 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2445 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/codecs/mod_amr/mod_amr.c

index 2bed578af6740f45627f5342430e551fc26a2639..b4f14b83808d30157c4c845bd92be0d8558f5aa0 100644 (file)
 #include "switch.h"
 #include "amr.h"
 
+/*
+ * Check section 8.1 of rfc3267 for possible sdp options.
+ *  
+ * SDP Example 
+ * 
+ * a=fmtp:97 mode-set=0,2,5,7; mode-change-period=2; mode-change-neighbor=1
+ *
+ *                                 Class A   total speech
+ *                Index   Mode       bits       bits
+ *                ----------------------------------------
+ *                  0     AMR 4.75   42         95
+ *                  1     AMR 5.15   49        103
+ *                  2     AMR 5.9    55        118
+ *                  3     AMR 6.7    58        134
+ *                  4     AMR 7.4    61        148
+ *                  5     AMR 7.95   75        159
+ *                  6     AMR 10.2   65        204
+ *                  7     AMR 12.2   81        244
+ *                  8     AMR SID    39         39
+ *
+ *        Table 1.  The number of class A bits for the AMR codec.
+ *
+ */
+
 static const char modname[] = "mod_amr";
 
 struct amr_context {
@@ -80,7 +104,7 @@ static switch_status_t switch_amr_init(switch_codec_t *codec, switch_codec_flag_
                return SWITCH_STATUS_FALSE;
        } else {
 
-               context->mode = AMR_Mode;
+               context->mode = AMR_Mode; /* start in mode 7 */
 
                if (encoding) {
                        context->encoder_state = Encoder_Interface_init(0);