Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
colorEagleStdio
taskbus
提交
00dbe9ec
taskbus
项目概览
colorEagleStdio
/
taskbus
通知
162
Star
11
Fork
4
代码
文件
提交
分支
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 搜索 >>
提交
00dbe9ec
编写于
12月 10, 2022
作者:
D
dev@dev.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.发现一个新功能。Qt声卡采样率可以任意设置。
2.修复声卡模块播放BUG
上级
2b29231b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
299 addition
and
272 deletion
+299
-272
modules/sinks/sink_soundcard/dialogsoundcard.cpp
modules/sinks/sink_soundcard/dialogsoundcard.cpp
+9
-2
modules/sources/source_soundcard/dialogsoundcard.cpp
modules/sources/source_soundcard/dialogsoundcard.cpp
+1
-1
projects/usrp_fm_reciever.tbj
projects/usrp_fm_reciever.tbj
+289
-269
未找到文件。
modules/sinks/sink_soundcard/dialogsoundcard.cpp
浏览文件 @
00dbe9ec
...
...
@@ -109,11 +109,18 @@ void DialogSoundCard::InitMonitor()
mFormatSound
.
setSampleRate
(
ui
->
spinbox_sprate
->
value
());
mFormatSound
.
setChannelCount
(
ui
->
spinbox_channels
->
value
());
QAudioDevice
infoOut
(
QMediaDevices
::
defaultAudioOutput
());
//QAudioDevice infoOut(QMediaDevices::defaultAudioOutput());
QAudioDevice
infoOut
;
if
(
ui
->
comboBox_audioDevices
->
currentIndex
()
>=
0
&&
ui
->
comboBox_audioDevices
->
currentIndex
()
<
m_devOutputModule
->
rowCount
())
infoOut
=
m_devOutputlist
[
ui
->
comboBox_audioDevices
->
currentIndex
()];
else
infoOut
=
QMediaDevices
::
defaultAudioOutput
();
if
(
!
infoOut
.
isFormatSupported
(
mFormatSound
))
{
//Default format not supported - trying to use nearest
mFormatSound
=
infoOut
.
preferredFormat
();
//
mFormatSound = infoOut.preferredFormat();
}
CreateAudioOutput
();
...
...
modules/sources/source_soundcard/dialogsoundcard.cpp
浏览文件 @
00dbe9ec
...
...
@@ -130,7 +130,7 @@ void DialogSoundCard::CreateAudioInput()
if
(
!
infoIn
.
isFormatSupported
(
mFormatSound
))
{
//Default format not supported - trying to use nearest
mFormatSound
=
infoIn
.
preferredFormat
();
//
mFormatSound = infoIn.preferredFormat();
}
QAudioDevice
inputDevice
(
infoIn
);
...
...
projects/usrp_fm_reciever.tbj
浏览文件 @
00dbe9ec
{
"mod0": {
"uhd_usrp_io": {
"input_subjects": {
"tx_time": {
"instance_value": "",
"tooltip": "tx_time",
"type": "uint64+double"
},
"wav_tx0": {
"instance_value": "",
"tooltip": "TX0",
"type": "short[2]"
},
"wav_tx1": {
"instance_value": "",
"tooltip": "TX1",
"type": "short[2]"
}
},
"instance": {
"additional_args": "nice=0;",
"exec": "modules/uhd_usrp_io",
"instance_value": 1
},
"name": {
"name": "UHD收发"
},
"output_subjects": {
"rx_time": {
"instance_value": 0,
"tooltip": "rx_time",
"type": "uint64+double"
},
"wav_rx0": {
"instance_value": 3,
"tooltip": "RX0",
"type": "short[2]"
},
"wav_rx1": {
"instance_value": "",
"tooltip": "RX1",
"type": "short[2]"
}
},
"parameters": {
"dev_args": {
"default": "",
"instance_value": "",
"tooltip": "设备初始化参数.",
"type": "string"
},
"rx_agc": {
"default": "0,0",
"instance_value": "0,0",
"range": "0=off,1=on",
"tooltip": "接收AGC开关",
"type": "int"
},
"rx_atn": {
"default": "RX2,RX2",
"instance_value": "RX2",
"range": "TX/RX,RX2",
"tooltip": "接收天线名称",
"type": "string"
},
"rx_bw": {
"default": "1.0,1.0",
"instance_value": "0.2,0.2",
"tooltip": "接收滤波器带宽(MHz)",
"type": "double"
},
"rx_channels": {
"default": "0,1",
"instance_value": "0",
"range": "0,1",
"tooltip": "接收各个通道号",
"type": "int"
},
"rx_gain": {
"default": "30.0,30.0",
"instance_value": "50",
"range": "0-100",
"tooltip": "接收增益(dB)",
"type": "double"
},
"rx_on": {
"default": "0",
"instance_value": "1",
"tooltip": "接收开关",
"type": "int"
},
"rx_rate": {
"default": 1,
"instance_value": "0.5",
"tooltip": "RX采样率(MHz)",
"type": "int"
},
"rx_rf": {
"default": "99.0,101.1",
"instance_value": "99.0",
"range": "0-6000",
"tooltip": "接收频率(MHz)",
"type": "double"
},
"tx_atn": {
"default": "TX/RX,TX/RX",
"instance_value": "TX/RX,TX/RX",
"tooltip": "发射天线名称",
"type": "string"
},
"tx_bw": {
"default": "1.0,1.0",
"instance_value": "1.0,1.0",
"tooltip": "发射滤波器带宽(MHz)",
"type": "double"
},
"tx_channels": {
"default": "0,1",
"instance_value": "0,1",
"tooltip": "发射各个通道",
"type": "int"
},
"tx_gain": {
"default": "30.0,30.0",
"instance_value": "30.0,30.0",
"range": "0-100",
"tooltip": "发射增益(dB)",
"type": "double"
},
"tx_on": {
"default": 0,
"instance_value": 0,
"tooltip": "发射开关",
"type": "int"
},
"tx_rate": {
"default": 1,
"instance_value": 1,
"tooltip": "TX采样率(MHz)",
"type": "int"
},
"tx_rf": {
"default": "200.0,203.0",
"instance_value": "200.0,203.0",
"range": "0-6000",
"tooltip": "发射频率(MHz)",
"type": "double"
}
}
}
},
"mod1": {
"transform_fft": {
"input_subjects": {
"signal": {
"instance_value": 8,
"tooltip": "signal",
"type": "byte"
},
"tmstamp_in": {
"instance_value": 0,
"tooltip": "tmstamp_in",
"type": "uint64"
}
},
"instance": {
"additional_args": "nice=0;",
"exec": "modules/transform_fft",
"instance_value": 2
},
"name": {
"name": "libfftw"
},
"output_subjects": {
"FFT": {
"instance_value": 4,
"tooltip": "FFT in dB",
"type": "vector"
},
"Spec": {
"instance_value": "",
"tooltip": "Spec in Complex",
"type": "vector"
},
"tmstamp_out": {
"instance_value": 0,
"tooltip": "tmstamp_out",
"type": "uint64"
}
},
"parameters": {
"channels": {
"default": 1,
"instance_value": 1,
"tooltip": "Channels",
"type": "int"
},
"fftsize": {
"default": 1024,
"instance_value": 1024,
"tooltip": "fft size",
"type": "int"
},
"input_type": {
"default": 0,
"instance_value": "1",
"tooltip": "0=Real,1=Complex",
"type": "int"
},
"sptype": {
"default": 0,
"instance_value": 0,
"range": {
"0": "16 bit Intel",
"1": "16 bit Moto",
"2": "int8",
"3": "uint8"
},
"tooltip": "sample point format",
"type": "enum"
}
}
}
},
"mod2": {
"sink_plots": {
"input_subjects": {
"plot0": {
...
...
@@ -232,7 +8,7 @@
"type": "byte"
},
"plot1": {
"instance_value":
4
,
"instance_value":
0
,
"tooltip": "input1",
"type": "byte"
},
...
...
@@ -253,9 +29,9 @@
}
},
"instance": {
"additional_args": "nice=
0
;",
"exec": "
modules/sink_plots
",
"instance_value":
3
"additional_args": "nice=
2
;",
"exec": "
../modules/sink_plots.exe
",
"instance_value":
1
},
"name": {
"name": "plots"
...
...
@@ -285,7 +61,7 @@
}
}
},
"mod
3
": {
"mod
1
": {
"resample_pqfraction": {
"input_subjects": {
"in": {
...
...
@@ -294,15 +70,15 @@
"type": "byte"
},
"in_time": {
"instance_value":
1
,
"instance_value":
0
,
"tooltip": "Input timestamp",
"type": "timestamp"
}
},
"instance": {
"additional_args": "nice=
0
;",
"exec": "
modules/resample_pqfraction
",
"instance_value":
4
"additional_args": "nice=
3
;",
"exec": "
../modules/resample_pqfraction.exe
",
"instance_value":
2
},
"name": {
"name": "resamplepq"
...
...
@@ -329,7 +105,7 @@
},
"nq": {
"default": "1",
"instance_value": "
5
00",
"instance_value": "
20
00",
"range": "N",
"tooltip": "old rate",
"type": "int"
...
...
@@ -356,7 +132,7 @@
}
}
},
"mod
4
": {
"mod
2
": {
"sink_soundcard": {
"input_subjects": {
"timestamp_in": {
...
...
@@ -371,9 +147,9 @@
}
},
"instance": {
"additional_args": "nice=
0
;",
"exec": "
modules/sink_soundcard
",
"instance_value":
5
"additional_args": "nice=
3
;",
"exec": "
../modules/sink_soundcard.exe
",
"instance_value":
3
},
"name": {
"name": "soundcard"
...
...
@@ -405,7 +181,7 @@
},
"sample_rate": {
"default": 44100,
"instance_value": "
32
000",
"instance_value": "
40
000",
"range": {
"desc": "8000~192000"
},
...
...
@@ -415,7 +191,7 @@
}
}
},
"mod
5
": {
"mod
3
": {
"mod_fm_dem": {
"input_subjects": {
"signal": {
...
...
@@ -430,9 +206,9 @@
}
},
"instance": {
"additional_args": "nice=
0
;",
"exec": "
modules/mod_fm_dem
",
"instance_value":
6
"additional_args": "nice=
3
;",
"exec": "
../modules/mod_fm_dem.exe
",
"instance_value":
4
},
"name": {
"name": "fm_dem"
...
...
@@ -451,7 +227,7 @@
}
}
},
"mod
6
": {
"mod
4
": {
"resample_pqfraction": {
"input_subjects": {
"in": {
...
...
@@ -466,9 +242,9 @@
}
},
"instance": {
"additional_args": "nice=
0
;",
"exec": "
modules/resample_pqfraction
",
"instance_value":
7
"additional_args": "nice=
3
;",
"exec": "
../modules/resample_pqfraction.exe
",
"instance_value":
5
},
"name": {
"name": "resamplepq"
...
...
@@ -488,14 +264,14 @@
"parameters": {
"np": {
"default": "1",
"instance_value": "
3200
0",
"instance_value": "
4
0",
"range": "N",
"tooltip": "new rate",
"type": "int"
},
"nq": {
"default": "1",
"instance_value": "200
000
",
"instance_value": "200",
"range": "N",
"tooltip": "old rate",
"type": "int"
...
...
@@ -522,12 +298,12 @@
}
}
},
"mod
7
": {
"mod
5
": {
"control_pannel": {
"instance": {
"additional_args": "nice=
0
;",
"exec": "
modules/control_pannel
",
"instance_value":
8
"additional_args": "nice=
2
;",
"exec": "
../modules/control_pannel.exe
",
"instance_value":
6
},
"name": {
"name": "CtrlPannel"
...
...
@@ -537,37 +313,281 @@
}
}
},
"mod6": {
"transform_fft": {
"input_subjects": {
"signal": {
"instance_value": 3,
"tooltip": "signal",
"type": "byte"
},
"tmstamp_in": {
"instance_value": "",
"tooltip": "tmstamp_in",
"type": "uint64"
}
},
"instance": {
"additional_args": "nice=2;",
"exec": "../modules/transform_fft.exe",
"instance_value": 7
},
"name": {
"name": "libfftw"
},
"output_subjects": {
"FFT": {
"instance_value": 9,
"tooltip": "FFT in dB",
"type": "vector"
},
"Spec": {
"instance_value": "",
"tooltip": "Spec in Complex",
"type": "vector"
},
"tmstamp_out": {
"instance_value": "",
"tooltip": "tmstamp_out",
"type": "uint64"
}
},
"parameters": {
"channels": {
"default": 1,
"instance_value": 1,
"tooltip": "Channels",
"type": "int"
},
"fftsize": {
"default": 1024,
"instance_value": "4096",
"tooltip": "fft size",
"type": "int"
},
"frame_span": {
"default": 16,
"instance_value": 16,
"range": ">=1",
"tooltip": "Frame Span (count) between each fft calc. Slower CPU need larger spans.",
"type": "int"
},
"input_type": {
"default": 0,
"instance_value": "1",
"tooltip": "0=Real,1=Complex",
"type": "int"
},
"mod": {
"default": 0,
"instance_value": 0,
"range": "0=Frame,1=Continous",
"tooltip": "WorkingMod",
"type": "int"
},
"sptype": {
"default": 0,
"instance_value": 0,
"range": {
"0": "16 bit Intel",
"1": "16 bit Moto",
"2": "int8",
"3": "uint8"
},
"tooltip": "sample point format",
"type": "enum"
}
}
}
},
"mod7": {
"uhd_usrp_io": {
"input_subjects": {
"tx_time": {
"instance_value": "",
"tooltip": "tx_time",
"type": "uint64+double"
},
"wav_tx0": {
"instance_value": "",
"tooltip": "TX0",
"type": "short[2]"
},
"wav_tx1": {
"instance_value": "",
"tooltip": "TX1",
"type": "short[2]"
}
},
"instance": {
"additional_args": "nice=2;",
"batchtime": 20,
"exec": "../modules/usrp/uhd_usrp_io.exe",
"instance_value": 8
},
"name": {
"name": "UHD收发"
},
"output_subjects": {
"rx_time": {
"instance_value": "",
"tooltip": "rx_time",
"type": "uint64+double"
},
"tx_mark": {
"instance_value": 0,
"tooltip": "TXWaterMark",
"type": "int64"
},
"wav_rx0": {
"instance_value": 3,
"tooltip": "RX0",
"type": "short[2]"
},
"wav_rx1": {
"instance_value": "",
"tooltip": "RX1",
"type": "short[2]"
}
},
"parameters": {
"dev_args": {
"default": "",
"instance_value": "",
"tooltip": "设备初始化参数.",
"type": "string"
},
"rx_agc": {
"default": "0,0",
"instance_value": "0,0",
"range": "0=off,1=on",
"tooltip": "接收AGC开关",
"type": "int"
},
"rx_atn": {
"default": "RX2,RX2",
"instance_value": "RX2,RX2",
"range": "TX/RX,RX2",
"tooltip": "接收天线名称",
"type": "string"
},
"rx_bw": {
"default": "1.0,1.0",
"instance_value": "2,2",
"tooltip": "接收滤波器带宽(MHz)",
"type": "double"
},
"rx_channels": {
"default": "0,1",
"instance_value": "0",
"range": "0,1",
"tooltip": "接收各个通道号",
"type": "int"
},
"rx_gain": {
"default": "30.0,30.0",
"instance_value": "60",
"range": "0-100",
"tooltip": "接收增益(dB)",
"type": "double"
},
"rx_on": {
"default": "0",
"instance_value": "1",
"tooltip": "接收开关",
"type": "int"
},
"rx_rate": {
"default": 1,
"instance_value": "2",
"tooltip": "RX采样率(MHz)",
"type": "int"
},
"rx_rf": {
"default": "99.0,101.1",
"instance_value": "97.5",
"range": "0-6000",
"tooltip": "接收频率(MHz)",
"type": "double"
},
"tx_atn": {
"default": "TX/RX,TX/RX",
"instance_value": "TX/RX,TX/RX",
"tooltip": "发射天线名称",
"type": "string"
},
"tx_bw": {
"default": "1.0,1.0",
"instance_value": "1.0,1.0",
"tooltip": "发射滤波器带宽(MHz)",
"type": "double"
},
"tx_channels": {
"default": "0,1",
"instance_value": "0,1",
"tooltip": "发射各个通道",
"type": "int"
},
"tx_gain": {
"default": "30.0,30.0",
"instance_value": "30.0,30.0",
"range": "0-100",
"tooltip": "发射增益(dB)",
"type": "double"
},
"tx_on": {
"default": 0,
"instance_value": 0,
"tooltip": "发射开关",
"type": "int"
},
"tx_rate": {
"default": 1,
"instance_value": 1,
"tooltip": "TX采样率(MHz)",
"type": "int"
},
"tx_rf": {
"default": "200.0,203.0",
"instance_value": "200.0,203.0",
"range": "0-6000",
"tooltip": "发射频率(MHz)",
"type": "double"
}
}
}
},
"pos0": {
"x":
1519
,
"y": 13
75
"x":
2383
,
"y": 13
27
},
"pos1": {
"x":
2078
,
"y": 1
340
"x":
1810
,
"y": 1
456
},
"pos2": {
"x": 2
383
,
"y": 1
327
"x": 2
649
,
"y": 1
412
},
"pos3": {
"x":
180
5,
"y": 1
467
"x":
208
5,
"y": 1
511
},
"pos4": {
"x": 2
649
,
"y": 1
414
"x": 2
378
,
"y": 1
515
},
"pos5": {
"x":
2085
,
"y": 1
511
"x":
1524
,
"y": 1
246
},
"pos6": {
"x":
2378
,
"y": 1
518
"x":
1954
,
"y": 1
266
},
"pos7": {
"x": 15
13
,
"y": 1
556
"x": 15
22
,
"y": 1
408
},
"total_mods": 8
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录