+ cutoff_knob_changed(ui->locut_cutoff_knob->value());
+
+ // Not QDial::valueChanged, as we call setValue() all the time.
+ connect(ui->gainstaging_knob, &QAbstractSlider::sliderMoved, this, &MainWindow::gain_staging_knob_changed);
+ connect(ui->gainstaging_auto_checkbox, &QCheckBox::stateChanged, [this](int state){
+ global_mixer->set_gain_staging_auto(state == Qt::Checked);
+ });
+ connect(ui->makeup_gain_knob, &QAbstractSlider::sliderMoved, this, &MainWindow::final_makeup_gain_knob_changed);
+ connect(ui->makeup_gain_auto_checkbox, &QCheckBox::stateChanged, [this](int state){
+ global_mixer->set_final_makeup_gain_auto(state == Qt::Checked);
+ });
+
+ 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);
+ connect(ui->limiter_enabled, &QCheckBox::stateChanged, [this](int state){
+ global_mixer->set_limiter_enabled(state == Qt::Checked);
+ });
+ connect(ui->compressor_enabled, &QCheckBox::stateChanged, [this](int state){
+ global_mixer->set_compressor_enabled(state == Qt::Checked);
+ });