- 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);
+ // TODO: Fetch all of the values these for completeness,
+ // not just the enable knobs implied by flags.
+ ui->locut_enabled->setChecked(global_mixer->get_locut_enabled());
+ ui->gainstaging_knob->setValue(global_mixer->get_gain_staging_db());
+ ui->gainstaging_auto_checkbox->setChecked(global_mixer->get_gain_staging_auto());
+ ui->compressor_enabled->setChecked(global_mixer->get_compressor_enabled());
+ ui->limiter_enabled->setChecked(global_mixer->get_limiter_enabled());
+ ui->makeup_gain_auto_checkbox->setChecked(global_mixer->get_final_makeup_gain_auto());
+
+ ui->limiter_threshold_db_display->setText(
+ QString::fromStdString(format_db(mixer->get_limiter_threshold_dbfs())));
+ ui->compressor_threshold_db_display->setText(
+ QString::fromStdString(format_db(mixer->get_compressor_threshold_dbfs())));