]> git.sesse.net Git - nageru/blobdiff - mainwindow.cpp
Make make_sbs_chain() take type instead of a yes/no deinterlaced flag, for more flexi...
[nageru] / mainwindow.cpp
index b9a1ef2127532583c6cb8b0b5d282540d8f9a48c..8196492ccfdb1560802e3be18010a39ee1c344cd 100644 (file)
@@ -75,7 +75,7 @@ MainWindow::MainWindow()
        transition_btn3 = ui->transition_btn3;
        qRegisterMetaType<string>("std::string");
        qRegisterMetaType<vector<string>>("std::vector<std::string>");
-       connect(ui->me_preview, &GLWidget::transition_names_updated, this, &MainWindow::set_transition_names);
+       connect(ui->me_live, &GLWidget::transition_names_updated, this, &MainWindow::set_transition_names);
        qRegisterMetaType<Mixer::Output>("Mixer::Output");
 }
 
@@ -120,6 +120,13 @@ void MainWindow::mixer_created(Mixer *mixer)
                connect(ui_display->wb_button, &QPushButton::clicked, bind(&MainWindow::wb_button_clicked, this, i));
        }
 
+       // TODO: Fetch all of the values these for completeness,
+       // not just the enable knobs implied by --flat-audio.
+       ui->locut_enabled->setChecked(global_mixer->get_locut_enabled());
+       ui->gainstaging_auto_checkbox->setChecked(global_mixer->get_gain_staging_auto());
+       ui->limiter_enabled->setChecked(global_mixer->get_limiter_enabled());
+       ui->compressor_enabled->setChecked(global_mixer->get_compressor_enabled());
+
        char buf[256];
        snprintf(buf, sizeof(buf), "%.1f dB", mixer->get_limiter_threshold_dbfs());
        ui->limiter_threshold_db_display->setText(buf);