Skip to content

Commit

Permalink
IQ tool: Always choose correct sampling rate
Browse files Browse the repository at this point in the history
Reselect file before starting playback. Fixes incorrect sample rate
when playback is started, stopped, devices switched, dsp started,
stopped and then started playback of the same IQ file.
  • Loading branch information
vladisslav2011 committed Jul 28, 2023
1 parent 4ce4670 commit 478a2bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/qtgui/iq_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ void CIqTool::on_playButton_clicked(bool checked)
{
ui->listWidget->setEnabled(false);
ui->recButton->setEnabled(false);
on_listWidget_currentTextChanged(current_file);
emit startPlayback(recdir->absoluteFilePath(current_file),
(float)sample_rate, center_freq);
}
Expand Down

0 comments on commit 478a2bd

Please sign in to comment.