Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
cb77ea07
提交
cb77ea07
authored
12月 15, 2006
作者:
Michael Jerris
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
typo
git-svn-id:
http://svn.freeswitch.org/svn/freeswitch/trunk@3672
d0543943-73ff-0310-b7d9-9358b9ac24b2
上级
44e41159
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
15 行增加
和
15 行删除
+15
-15
mod_conference.c
src/mod/applications/mod_conference/mod_conference.c
+15
-15
没有找到文件。
src/mod/applications/mod_conference/mod_conference.c
浏览文件 @
cb77ea07
...
...
@@ -137,15 +137,15 @@ typedef enum {
NODE_TYPE_SPEECH
}
node_type_t
;
typedef
struct
confernce_file_node
{
typedef
struct
confer
e
nce_file_node
{
switch_file_handle_t
fh
;
switch_speech_handle_t
sh
;
node_type_t
type
;
uint8_t
done
;
switch_memory_pool_t
*
pool
;
uint32_t
leadin
;
struct
confernce_file_node
*
next
;
}
confernce_file_node_t
;
struct
confer
e
nce_file_node
*
next
;
}
confer
e
nce_file_node_t
;
/* Conference Object */
typedef
struct
conference_obj
{
...
...
@@ -178,7 +178,7 @@ typedef struct conference_obj {
switch_mutex_t
*
mutex
;
conference_member_t
*
members
;
switch_mutex_t
*
member_mutex
;
confernce_file_node_t
*
fnode
;
confer
e
nce_file_node_t
*
fnode
;
switch_memory_pool_t
*
pool
;
switch_thread_rwlock_t
*
rwlock
;
uint32_t
count
;
...
...
@@ -221,7 +221,7 @@ struct conference_member {
uint32_t
native_rate
;
switch_audio_resampler_t
*
mux_resampler
;
switch_audio_resampler_t
*
read_resampler
;
confernce_file_node_t
*
fnode
;
confer
e
nce_file_node_t
*
fnode
;
conference_relationship_t
*
relationships
;
struct
conference_member
*
next
;
};
...
...
@@ -488,7 +488,7 @@ static void conference_del_member(conference_obj_t *conference, conference_membe
if
(
member
->
fnode
)
{
/* Close Unused Handles */
confernce_file_node_t
*
fnode
,
*
cur
;
confer
e
nce_file_node_t
*
fnode
,
*
cur
;
switch_memory_pool_t
*
pool
;
fnode
=
member
->
fnode
;
...
...
@@ -726,7 +726,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
}
if
(
conference
->
fnode
&&
conference
->
fnode
->
done
)
{
confernce_file_node_t
*
fnode
;
confer
e
nce_file_node_t
*
fnode
;
switch_memory_pool_t
*
pool
;
if
(
conference
->
fnode
->
type
==
NODE_TYPE_SPEECH
)
{
...
...
@@ -769,7 +769,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
switch_mutex_lock
(
conference
->
mutex
);
if
(
conference
->
fnode
)
{
/* Close Unused Handles */
confernce_file_node_t
*
fnode
,
*
cur
;
confer
e
nce_file_node_t
*
fnode
,
*
cur
;
switch_memory_pool_t
*
pool
;
fnode
=
conference
->
fnode
;
...
...
@@ -1168,7 +1168,7 @@ static void conference_loop(conference_member_t *member)
if
(
member
->
fnode
)
{
/* if we are done, clean it up */
if
(
member
->
fnode
->
done
)
{
confernce_file_node_t
*
fnode
;
confer
e
nce_file_node_t
*
fnode
;
switch_memory_pool_t
*
pool
;
if
(
member
->
fnode
->
type
==
NODE_TYPE_SPEECH
)
{
...
...
@@ -1392,7 +1392,7 @@ end:
/* Make files stop playing in a conference either the current one or all of them */
static
uint32_t
conference_stop_file
(
conference_obj_t
*
conference
,
file_stop_t
stop
)
{
confernce_file_node_t
*
nptr
;
confer
e
nce_file_node_t
*
nptr
;
uint32_t
count
=
0
;
switch_mutex_lock
(
conference
->
mutex
);
...
...
@@ -1417,7 +1417,7 @@ static uint32_t conference_stop_file(conference_obj_t *conference, file_stop_t s
/* stop playing a file for the member of the conference */
static
uint32_t
conference_member_stop_file
(
conference_member_t
*
member
,
file_stop_t
stop
)
{
confernce_file_node_t
*
nptr
;
confer
e
nce_file_node_t
*
nptr
;
uint32_t
count
=
0
;
switch_mutex_lock
(
member
->
flag_mutex
);
...
...
@@ -1442,7 +1442,7 @@ static uint32_t conference_member_stop_file(conference_member_t *member, file_st
/* Play a file in the conference room */
static
switch_status_t
conference_play_file
(
conference_obj_t
*
conference
,
char
*
file
,
uint32_t
leadin
,
switch_channel_t
*
channel
)
{
confernce_file_node_t
*
fnode
,
*
nptr
;
confer
e
nce_file_node_t
*
fnode
,
*
nptr
;
switch_memory_pool_t
*
pool
;
uint32_t
count
;
char
*
expanded
=
NULL
;
...
...
@@ -1529,7 +1529,7 @@ static switch_status_t conference_play_file(conference_obj_t *conference, char *
/* Play a file in the conference room to a member */
static
switch_status_t
conference_member_play_file
(
conference_member_t
*
member
,
char
*
file
,
uint32_t
leadin
)
{
confernce_file_node_t
*
fnode
,
*
nptr
;
confer
e
nce_file_node_t
*
fnode
,
*
nptr
;
switch_memory_pool_t
*
pool
;
if
(
*
file
!=
'/'
)
{
...
...
@@ -1581,7 +1581,7 @@ static switch_status_t conference_member_play_file(conference_member_t *member,
/* Say some thing with TTS in the conference room */
static
switch_status_t
conference_member_say
(
conference_obj_t
*
conference
,
conference_member_t
*
member
,
char
*
text
,
uint32_t
leadin
)
{
confernce_file_node_t
*
fnode
,
*
nptr
;
confer
e
nce_file_node_t
*
fnode
,
*
nptr
;
switch_memory_pool_t
*
pool
;
switch_speech_flag_t
flags
=
SWITCH_SPEECH_FLAG_NONE
;
...
...
@@ -1640,7 +1640,7 @@ static switch_status_t conference_member_say(conference_obj_t *conference, confe
/* Say some thing with TTS in the conference room */
static
switch_status_t
conference_say
(
conference_obj_t
*
conference
,
char
*
text
,
uint32_t
leadin
)
{
confernce_file_node_t
*
fnode
,
*
nptr
;
confer
e
nce_file_node_t
*
fnode
,
*
nptr
;
switch_memory_pool_t
*
pool
;
switch_speech_flag_t
flags
=
SWITCH_SPEECH_FLAG_NONE
;
uint32_t
count
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论