Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
3f953ec3
提交
3f953ec3
authored
6月 07, 2010
作者:
Steve Underwood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added a dummy t38_gateway_fillin() function, which will need fleshing out
later. At least the module can call something for now.
上级
2492c289
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
21 行增加
和
4 行删除
+21
-4
t38_gateway.h
libs/spandsp/src/spandsp/t38_gateway.h
+12
-2
t38_gateway.c
libs/spandsp/src/t38_gateway.c
+9
-2
没有找到文件。
libs/spandsp/src/spandsp/t38_gateway.h
浏览文件 @
3f953ec3
...
...
@@ -109,7 +109,17 @@ SPAN_DECLARE(int) t38_gateway_free(t38_gateway_state_t *s);
\param amp The audio sample buffer.
\param len The number of samples in the buffer.
\return The number of samples unprocessed. */
SPAN_DECLARE
(
int
)
t38_gateway_rx
(
t38_gateway_state_t
*
s
,
int16_t
amp
[],
int
len
);
SPAN_DECLARE_NONSTD
(
int
)
t38_gateway_rx
(
t38_gateway_state_t
*
s
,
int16_t
amp
[],
int
len
);
/*! Apply fake processing when a block of audio samples is missing (e.g due
to packet loss).
\brief Apply fake received audio processing.
\param s The T.38 context.
\param len The number of samples to fake.
\return The number of samples unprocessed. This should only be non-zero if
the software has reached the end of the FAX call.
*/
SPAN_DECLARE_NONSTD
(
int
)
t38_gateway_rx_fillin
(
t38_gateway_state_t
*
s
,
int
len
);
/*! Generate a block of FAX audio samples.
\brief Generate a block of FAX audio samples.
...
...
@@ -118,7 +128,7 @@ SPAN_DECLARE(int) t38_gateway_rx(t38_gateway_state_t *s, int16_t amp[], int len)
\param max_len The number of samples to be generated.
\return The number of samples actually generated.
*/
SPAN_DECLARE
(
int
)
t38_gateway_tx
(
t38_gateway_state_t
*
s
,
int16_t
amp
[],
int
max_len
);
SPAN_DECLARE
_NONSTD
(
int
)
t38_gateway_tx
(
t38_gateway_state_t
*
s
,
int16_t
amp
[],
int
max_len
);
/*! Control whether error correcting mode (ECM) is allowed.
\brief Control whether error correcting mode (ECM) is allowed.
...
...
libs/spandsp/src/t38_gateway.c
浏览文件 @
3f953ec3
...
...
@@ -2054,7 +2054,7 @@ static int restart_rx_modem(t38_gateway_state_t *s)
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE
(
int
)
t38_gateway_rx
(
t38_gateway_state_t
*
s
,
int16_t
amp
[],
int
len
)
SPAN_DECLARE
_NONSTD
(
int
)
t38_gateway_rx
(
t38_gateway_state_t
*
s
,
int16_t
amp
[],
int
len
)
{
int
i
;
...
...
@@ -2104,7 +2104,14 @@ SPAN_DECLARE(int) t38_gateway_rx(t38_gateway_state_t *s, int16_t amp[], int len)
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE
(
int
)
t38_gateway_tx
(
t38_gateway_state_t
*
s
,
int16_t
amp
[],
int
max_len
)
SPAN_DECLARE_NONSTD
(
int
)
t38_gateway_rx_fillin
(
t38_gateway_state_t
*
s
,
int
len
)
{
/* TODO: handle things properly */
return
0
;
}
/*- End of function --------------------------------------------------------*/
SPAN_DECLARE_NONSTD
(
int
)
t38_gateway_tx
(
t38_gateway_state_t
*
s
,
int16_t
amp
[],
int
max_len
)
{
int
len
;
#if defined(LOG_FAX_AUDIO)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论