X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.cpp;h=fbfbecda05fbb3eb4afe92ce03766d3bb1ea9376;hb=a76872873dda7a4fc9f41972486c234699f43b23;hp=b78751f4de2d933d514d74b5cbbd209b12311b89;hpb=c9dffdd52a4847c6cf5590e8c45d1cf5ee6177d3;p=nageru diff --git a/mainwindow.cpp b/mainwindow.cpp index b78751f..fbfbecd 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -109,6 +109,10 @@ void MainWindow::mixer_created(Mixer *mixer) connect(ui->locut_cutoff_knob, &QDial::valueChanged, this, &MainWindow::cutoff_knob_changed); cutoff_knob_changed(ui->locut_cutoff_knob->value()); + connect(ui->gainstaging_auto_checkbox, &QCheckBox::stateChanged, [this](int state){ + global_mixer->set_gainstaging_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){