DelayAnalyzer::DelayAnalyzer()
: ui(new Ui::DelayAnalyzer),
DelayAnalyzer::DelayAnalyzer()
: ui(new Ui::DelayAnalyzer),
{
ui->setupUi(this);
connect(ui->grab_btn, &QPushButton::clicked, this, &DelayAnalyzer::grab_clicked);
{
ui->setupUi(this);
connect(ui->grab_btn, &QPushButton::clicked, this, &DelayAnalyzer::grab_clicked);
bind(&DelayAnalyzer::channel_selected, this, ui->channel_combo_1));
connect(ui->channel_combo_2, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
bind(&DelayAnalyzer::channel_selected, this, ui->channel_combo_2));
bind(&DelayAnalyzer::channel_selected, this, ui->channel_combo_1));
connect(ui->channel_combo_2, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
bind(&DelayAnalyzer::channel_selected, this, ui->channel_combo_2));
for (const auto &spec_and_info : devices) {
QString label(QString::fromStdString(spec_and_info.second.display_name));
for (const auto &spec_and_info : devices) {
QString label(QString::fromStdString(spec_and_info.second.display_name));
if (clip1.get_length_seconds_after_base(base) >= 1.0 &&
clip2.get_length_seconds_after_base(base) >= 1.0) {
if (clip1.get_length_seconds_after_base(base) >= 1.0 &&
clip2.get_length_seconds_after_base(base) >= 1.0) {