- mixer->set_audio_level_callback(bind(&MainWindow::audio_level_callback, this, _1, _2, _3, _4, _5, _6));
+ mixer->set_audio_level_callback(bind(&MainWindow::audio_level_callback, this, _1, _2, _3, _4, _5, _6, _7, _8));
+}
+
+void MainWindow::mixer_shutting_down()
+{
+ ui->me_live->clean_context();
+ ui->me_preview->clean_context();
+ for (Ui::Display *display : previews) {
+ display->display->clean_context();
+ }
+}
+
+void MainWindow::cut_triggered()
+{
+ global_mixer->schedule_cut();
+}
+
+void MainWindow::exit_triggered()
+{
+ close();
+}
+
+void MainWindow::about_triggered()
+{
+ AboutDialog().exec();
+}
+
+void MainWindow::gain_staging_knob_changed(int value)
+{
+ ui->gainstaging_auto_checkbox->setCheckState(Qt::Unchecked);
+
+ float gain_db = value * 0.1f;
+ global_mixer->set_gain_staging_db(gain_db);
+
+ // The label will be updated by the audio level callback.
+}
+
+void MainWindow::final_makeup_gain_knob_changed(int value)
+{
+ ui->makeup_gain_auto_checkbox->setCheckState(Qt::Unchecked);
+
+ float gain_db = value * 0.1f;
+ global_mixer->set_final_makeup_gain_db(gain_db);
+
+ // The label will be updated by the audio level callback.