]> 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 9bac15a822c46d46d830a9047221144b0b8dbe69..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);
@@ -154,12 +161,14 @@ void MainWindow::mixer_created(Mixer *mixer)
        mixer->set_audio_level_callback(bind(&MainWindow::audio_level_callback, this, _1, _2, _3, _4, _5, _6, _7, _8));
 
        struct sigaction act;
+       memset(&act, 0, sizeof(act));
        act.sa_handler = schedule_cut_signal;
        act.sa_flags = SA_RESTART;
        sigaction(SIGHUP, &act, nullptr);
 
        // Mostly for debugging. Don't override SIGINT, that's so evil if
        // shutdown isn't instant.
+       memset(&act, 0, sizeof(act));
        act.sa_handler = quit_signal;
        act.sa_flags = SA_RESTART;
        sigaction(SIGUSR1, &act, nullptr);