X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.h;h=f768aaa31445ecb9bf92a54f314586d892b78876;hb=59d1397c90bd594efb80734a2e6f213fb8c5e584;hp=317d2929c005550dbc565ce409178012e9fdabe6;hpb=635bc53e064f4cd96d4271a8a28b59b301d5921d;p=nageru diff --git a/mainwindow.h b/mainwindow.h index 317d292..f768aaa 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -4,6 +4,9 @@ #include #include #include +#include + +#include "mixer.h" class GLWidget; class QResizeEvent; @@ -13,7 +16,6 @@ class Display; class MainWindow; } // namespace Ui -class Mixer; class QPushButton; class MainWindow : public QMainWindow @@ -25,12 +27,20 @@ public: void resizeEvent(QResizeEvent *event) override; void mixer_created(Mixer *mixer); + // Used to release FBOs on the global ResourcePool. Call after the + // mixer has been shut down but not destroyed yet. + void mixer_shutting_down(); + public slots: void transition_clicked(int transition_number); void channel_clicked(int channel_number); void wb_button_clicked(int channel_number); void set_transition_names(std::vector transition_names); + void update_channel_name(Mixer::Output output); void cutoff_knob_changed(int value); + void limiter_threshold_knob_changed(int value); + void compressor_threshold_knob_changed(int value); + void reset_meters_button_clicked(); void relayout(); private: @@ -39,6 +49,7 @@ private: // Called from the mixer. void audio_level_callback(float level_lufs, float peak_db, float global_level_lufs, float range_low_lufs, float range_high_lufs, float auto_gain_staging_db); + timeval last_audio_level_callback{0, 0}; Ui::MainWindow *ui; QPushButton *transition_btn1, *transition_btn2, *transition_btn3;