From fe9fb144dc798697fa26e2139e192361231a19ec Mon Sep 17 00:00:00 2001 From: Brian West Date: Wed, 30 Aug 2006 05:16:12 +0000 Subject: [PATCH] some notes for later git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2445 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/codecs/mod_amr/mod_amr.c | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/src/mod/codecs/mod_amr/mod_amr.c b/src/mod/codecs/mod_amr/mod_amr.c index 2bed578af6..b4f14b8380 100644 --- a/src/mod/codecs/mod_amr/mod_amr.c +++ b/src/mod/codecs/mod_amr/mod_amr.c @@ -34,6 +34,30 @@ #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);