Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
2666a40a
提交
2666a40a
authored
4月 09, 2010
作者:
Joao Mesquita
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Lets test preprocessors
上级
bec8d75e
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
1151 行增加
和
951 行删除
+1151
-951
mainwindow.cpp
fscomm/mainwindow.cpp
+16
-0
mainwindow.h
fscomm/mainwindow.h
+1
-0
prefdialog.cpp
fscomm/preferences/prefdialog.cpp
+1
-0
prefdialog.h
fscomm/preferences/prefdialog.h
+3
-0
prefdialog.ui
fscomm/preferences/prefdialog.ui
+1103
-951
prefportaudio.cpp
fscomm/preferences/prefportaudio.cpp
+22
-0
prefportaudio.h
fscomm/preferences/prefportaudio.h
+5
-0
没有找到文件。
fscomm/mainwindow.cpp
浏览文件 @
2666a40a
...
...
@@ -179,10 +179,26 @@ void MainWindow::debugConsoleTriggered()
}
void
MainWindow
::
applyPreprocessors
(
QStringList
cmds
)
{
if
(
g_FSHost
.
getCurrentActiveCall
().
isNull
())
return
;
QString
uuid
=
g_FSHost
.
getCurrentActiveCall
().
data
()
->
getUuid
();
foreach
(
QString
cmd
,
cmds
)
{
switch_stream_handle_t
stream
=
{
0
};
SWITCH_STANDARD_STREAM
(
stream
);
switch_api_execute
(
"uuid_preprocess"
,
QString
(
"%1 %2"
).
arg
(
uuid
,
cmd
).
toAscii
().
data
(),
NULL
,
&
stream
);
switch_safe_free
(
stream
.
data
);
}
}
void
MainWindow
::
prefTriggered
()
{
if
(
!
preferences
)
{
preferences
=
new
PrefDialog
();
connect
(
preferences
,
SIGNAL
(
preprocessorsApplied
(
QStringList
)),
this
,
SLOT
(
applyPreprocessors
(
QStringList
)));
}
preferences
->
raise
();
preferences
->
show
();
...
...
fscomm/mainwindow.h
浏览文件 @
2666a40a
...
...
@@ -85,6 +85,7 @@ private slots:
void
updateCallTimers
();
void
debugConsoleTriggered
();
void
debugEventsTriggered
();
void
applyPreprocessors
(
QStringList
);
private
:
Ui
::
MainWindow
*
ui
;
...
...
fscomm/preferences/prefdialog.cpp
浏览文件 @
2666a40a
...
...
@@ -15,6 +15,7 @@ PrefDialog::PrefDialog(QWidget *parent) :
_pref_accounts
=
new
PrefAccounts
(
ui
);
_mod_portaudio
=
new
PrefPortaudio
(
ui
,
this
);
connect
(
_mod_portaudio
,
SIGNAL
(
preprocessorsApplied
(
QStringList
)),
this
,
SIGNAL
(
preprocessorsApplied
(
QStringList
)));
_mod_sofia
=
new
PrefSofia
(
ui
,
this
);
readConfig
();
}
...
...
fscomm/preferences/prefdialog.h
浏览文件 @
2666a40a
...
...
@@ -26,6 +26,9 @@ protected:
private
slots
:
void
writeConfig
();
signals
:
void
preprocessorsApplied
(
QStringList
);
private
:
void
readConfig
();
QSettings
*
_settings
;
...
...
fscomm/preferences/prefdialog.ui
浏览文件 @
2666a40a
差异被折叠。
点击展开。
fscomm/preferences/prefportaudio.cpp
浏览文件 @
2666a40a
...
...
@@ -15,6 +15,28 @@ PrefPortaudio::PrefPortaudio(Ui::PrefDialog *ui, QObject *parent) :
connect
(
_ui
->
PaRingdevTestBtn
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
ringdevTest
()));
connect
(
_ui
->
PaLoopTestBtn
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
loopTest
()));
connect
(
_ui
->
PaRefreshDevListBtn
,
SIGNAL
(
clicked
()),
this
,
SLOT
(
refreshDevList
()));
connect
(
_ui
->
btnApplyPreprocessor
,
SIGNAL
(
toggled
(
bool
)),
this
,
SLOT
(
applyPreprocessors
(
bool
)));
}
void
PrefPortaudio
::
applyPreprocessors
(
bool
state
)
{
QStringList
cmds
;
if
(
!
state
)
{
cmds
.
append
(
"stop"
);
}
else
{
if
(
_ui
->
checkAECRead
->
isChecked
())
cmds
.
append
(
QString
(
"recho_cancel=%1"
).
arg
(
_ui
->
spinAECTail
->
value
()));
if
(
_ui
->
checkAECWrite
->
isChecked
())
cmds
.
append
(
QString
(
"wecho_cancel=%1"
).
arg
(
_ui
->
spinAECTail
->
value
()));
if
(
_ui
->
checkESRead
->
isChecked
())
cmds
.
append
(
QString
(
"recho_suppress=%1"
).
arg
(
_ui
->
spinESDb
->
value
()));
if
(
_ui
->
checkESWrite
->
isChecked
())
cmds
.
append
(
QString
(
"wecho_suppress=%1"
).
arg
(
_ui
->
spinESDb
->
value
()));
if
(
_ui
->
checkNSRead
->
isChecked
())
cmds
.
append
(
QString
(
"rnoise_suppress=%1"
).
arg
(
_ui
->
spinNSDb
->
value
()));
if
(
_ui
->
checkNSWrite
->
isChecked
())
cmds
.
append
(
QString
(
"wnoise_suppress=%1"
).
arg
(
_ui
->
spinNSDb
->
value
()));
if
(
_ui
->
checkAGCRead
->
isChecked
())
cmds
.
append
(
QString
(
"ragc=%1"
).
arg
(
_ui
->
spinAGC
->
value
()));
if
(
_ui
->
checkAGCWrite
->
isChecked
())
cmds
.
append
(
QString
(
"wagc=%1"
).
arg
(
_ui
->
spinAGC
->
value
()));
}
emit
preprocessorsApplied
(
cmds
);
}
void
PrefPortaudio
::
ringdevTest
()
...
...
fscomm/preferences/prefportaudio.h
浏览文件 @
2666a40a
...
...
@@ -24,6 +24,11 @@ private slots:
void
ringdevTest
();
void
loopTest
();
void
refreshDevList
();
void
applyPreprocessors
(
bool
);
signals
:
void
preprocessorsApplied
(
QStringList
);
private
:
void
getPaDevlist
(
void
);
QSettings
*
_settings
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论