]> git.sesse.net Git - nageru/blobdiff - mainwindow.cpp
Fetch default threshold displays from the mixer.
[nageru] / mainwindow.cpp
index a19a4560ab1c69b5bae9f42d871d16fff511d47f..de0b4da2ef507103da245fae47285a1daec44538 100644 (file)
@@ -92,6 +92,12 @@ void MainWindow::mixer_created(Mixer *mixer)
                connect(ui_display->wb_button, &QPushButton::clicked, bind(&MainWindow::wb_button_clicked, this, i));
        }
 
+       char buf[256];
+       snprintf(buf, sizeof(buf), "%.1f dB", mixer->get_limiter_threshold_dbfs());
+       ui->limiter_threshold_db_display->setText(buf);
+       snprintf(buf, sizeof(buf), "%.1f dB", mixer->get_compressor_threshold_dbfs());
+       ui->compressor_threshold_db_display->setText(buf);
+
        connect(ui->locut_cutoff_knob, &QDial::valueChanged, this, &MainWindow::cutoff_knob_changed);
        connect(ui->limiter_threshold_knob, &QDial::valueChanged, this, &MainWindow::limiter_threshold_knob_changed);
        connect(ui->compressor_threshold_knob, &QDial::valueChanged, this, &MainWindow::compressor_threshold_knob_changed);