mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
fix bytesize to 5.3kb for g723 codec and add support for multimode of tc400p
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -102,7 +102,7 @@ struct ast_smoother {
|
||||
|
||||
/*! \brief Definition of supported media formats (codecs) */
|
||||
static struct ast_format_list AST_FORMAT_LIST[] = { /*!< Bit number: comment - Bit numbers are hard coded in show_codec() */
|
||||
{ 1, AST_FORMAT_G723_1 , "g723" , "G.723.1", 24, 30, 300, 30, 30 }, /*!< 1 */
|
||||
{ 1, AST_FORMAT_G723_1 , "g723" , "G.723.1", 20, 30, 300, 30, 30 }, /*!< 1 */
|
||||
{ 1, AST_FORMAT_GSM, "gsm" , "GSM", 33, 20, 300, 20, 20 }, /*!< 2: codec_gsm.c */
|
||||
{ 1, AST_FORMAT_ULAW, "ulaw", "G.711 u-law", 80, 10, 150, 10, 20 }, /*!< 3: codec_ulaw.c */
|
||||
{ 1, AST_FORMAT_ALAW, "alaw", "G.711 A-law", 80, 10, 150, 10, 20 }, /*!< 4: codec_alaw.c */
|
||||
@@ -1377,6 +1377,9 @@ int ast_codec_get_len(int format, int samples)
|
||||
|
||||
/* XXX Still need speex, g723, and lpc10 XXX */
|
||||
switch(format) {
|
||||
case AST_FORMAT_G723_1:
|
||||
len = (samples / 240) * 20;
|
||||
break;
|
||||
case AST_FORMAT_ILBC:
|
||||
len = (samples / 240) * 50;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user