结构优化
This commit is contained in:
@@ -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]);
|
||||
|
||||
|
||||
// 保存音频流
|
||||
|
||||
Reference in New Issue
Block a user