diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-14 05:15:48 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-14 05:15:48 +0000 |
commit | 92a945abe63a2579c66257696ddda848ab5a3ea0 (patch) | |
tree | 0deebbd8647eb5799eef8ddc6f084ec945574299 /codecs/codec_ilbc.c | |
parent | 850b151d70bb9a1dc28edd3c0d737b57b1ab43cc (diff) |
Update to new iLBC codec
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3997 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs/codec_ilbc.c')
-rwxr-xr-x | codecs/codec_ilbc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/codecs/codec_ilbc.c b/codecs/codec_ilbc.c index 5756d9ce9..84f89c1e8 100755 --- a/codecs/codec_ilbc.c +++ b/codecs/codec_ilbc.c @@ -3,11 +3,11 @@ * * Translate between signed linear and Internet Low Bitrate Codec * - * The iLBC code is from The IETF code base and is copyright GlobalSound, AB + * The iLBC code is from The IETF code base and is copyright The Internet Society (2004) * - * Copyright (C) 1999, Mark Spencer + * Copyright (C) 1999-2004, Digium, Inc. * - * Mark Spencer <markster@linux-support.net> + * Mark Spencer <markster@digium.com> * * This program is free software, distributed under the terms of * the GNU General Public License @@ -33,6 +33,8 @@ #include "ilbc_slin_ex.h" #define USE_ILBC_ENHANCER 0 +#define ILBC_MS 30 +/* #define ILBC_MS 20 */ AST_MUTEX_DEFINE_STATIC(localuser_lock); static int localusecnt=0; @@ -61,7 +63,7 @@ static struct ast_translator_pvt *lintoilbc_new(void) if (tmp) { /* Shut valgrind up */ memset(&tmp->enc, 0, sizeof(tmp->enc)); - initEncode(&tmp->enc); + initEncode(&tmp->enc, ILBC_MS); tmp->tail = 0; localusecnt++; } @@ -75,7 +77,7 @@ static struct ast_translator_pvt *ilbctolin_new(void) if (tmp) { /* Shut valgrind up */ memset(&tmp->dec, 0, sizeof(tmp->dec)); - initDecode(&tmp->dec, USE_ILBC_ENHANCER); + initDecode(&tmp->dec, ILBC_MS, USE_ILBC_ENHANCER); tmp->tail = 0; localusecnt++; } |