结构优化

This commit is contained in:
2026-07-30 18:09:03 +08:00
parent a8b2d1202b
commit 78f42f892e
7 changed files with 123 additions and 110 deletions
+2 -4
View File
@@ -120,8 +120,7 @@ void Back_End::call_back_data_func(int channel, void *pData, int i_length)
auto mw = Main_Widget::instance();
auto rw = mw->radio_widget;
auto iw = mw->intermediate_frequency_widget;
int tick = rw->water_fall->time_axis()->give_data(QTime::currentTime());
rw->water_fall->give_data(tick, data); // 中频瀑布图
rw->water_fall->give_data(QTime::currentTime(), data); // 中频瀑布图
rw->spectrogram_line->give_data(data); // 中频频谱图
iw->afterglow->give_data(data); // 余晖图
@@ -159,8 +158,7 @@ void Back_End::call_back_data_func(int channel, void *pData, int i_length)
//std::cout << "audio == " << rbuf[256] << std::endl;
int tick = radio->time_power->time_axis()->give_data(QTime::currentTime());
radio->time_power->give_data(tick, rbuf[256]);
radio->time_power->give_data(QTime::currentTime(), rbuf[256]);
// 保存音频流