Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
m0_63117999
taskbus
提交
702804c0
taskbus
项目概览
m0_63117999
/
taskbus
与 Fork 源项目一致
Fork自
colorEagleStdio / taskbus
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
taskbus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
702804c0
编写于
12月 11, 2022
作者:
丁劲犇
😸
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of git@gitcode.net:coloreaglestdio/taskbus.git
上级
73f9bd2d
dce34bc3
变更
3
展开全部
隐藏空白更改
内联
并排
Showing
3 changed file
with
295 addition
and
288 deletion
+295
-288
modules/sinks/sink_soundcard/dialogsoundcard.cpp
modules/sinks/sink_soundcard/dialogsoundcard.cpp
+6
-12
modules/sources/source_soundcard/dialogsoundcard.cpp
modules/sources/source_soundcard/dialogsoundcard.cpp
+1
-8
projects/usrp_fm_reciever.tbj
projects/usrp_fm_reciever.tbj
+288
-268
未找到文件。
modules/sinks/sink_soundcard/dialogsoundcard.cpp
浏览文件 @
702804c0
...
...
@@ -110,25 +110,19 @@ void DialogSoundCard::InitMonitor()
mFormatSound
.
setCodec
(
"audio/pcm"
);
//set codec as simple audio/pcm
mFormatSound
.
setSampleRate
(
ui
->
spinbox_sprate
->
value
());
mFormatSound
.
setChannelCount
(
ui
->
spinbox_channels
->
value
());
QAudioDeviceInfo
infoIn
;
//QAudioDeviceInfo infoOut(QAudioDeviceInfo::defaultOutputDevice());
QAudioDeviceInfo
infoOut
;
if
(
ui
->
comboBox_audioDevices
->
currentIndex
()
>=
0
&&
ui
->
comboBox_audioDevices
->
currentIndex
()
<
m_devOutputModule
->
rowCount
())
info
In
=
m_devOutputlist
[
ui
->
comboBox_audioDevices
->
currentIndex
()];
info
Out
=
m_devOutputlist
[
ui
->
comboBox_audioDevices
->
currentIndex
()];
else
infoIn
=
QAudioDeviceInfo
::
defaultInputDevice
();
if
(
!
infoIn
.
isFormatSupported
(
mFormatSound
))
{
//Default format not supported - trying to use nearest
mFormatSound
=
infoIn
.
nearestFormat
(
mFormatSound
);
}
QAudioDeviceInfo
infoOut
(
QAudioDeviceInfo
::
defaultOutputDevice
());
infoOut
=
QAudioDeviceInfo
::
defaultOutputDevice
();
if
(
!
infoOut
.
isFormatSupported
(
mFormatSound
))
{
//Default format not supported - trying to use nearest
mFormatSound
=
infoOut
.
nearestFormat
(
mFormatSound
);
//
mFormatSound = infoOut.nearestFormat(mFormatSound);
}
CreateAudioOutput
();
mpOutDevSound
=
mpAudioOutputSound
->
start
();
connect
(
ui
->
horizontalSlider
,
SIGNAL
(
valueChanged
(
int
)),
...
...
modules/sources/source_soundcard/dialogsoundcard.cpp
浏览文件 @
702804c0
...
...
@@ -118,14 +118,7 @@ void DialogSoundCard::InitMonitor()
if
(
!
infoIn
.
isFormatSupported
(
mFormatSound
))
{
//Default format not supported - trying to use nearest
mFormatSound
=
infoIn
.
nearestFormat
(
mFormatSound
);
}
QAudioDeviceInfo
infoOut
(
QAudioDeviceInfo
::
defaultOutputDevice
());
if
(
!
infoOut
.
isFormatSupported
(
mFormatSound
))
{
//Default format not supported - trying to use nearest
mFormatSound
=
infoOut
.
nearestFormat
(
mFormatSound
);
//mFormatSound = infoIn.nearestFormat(mFormatSound);
}
CreateAudioInput
();
...
...
projects/usrp_fm_reciever.tbj
浏览文件 @
702804c0
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录