16 class AudioExpandedView;
25 class MainWindow : public QMainWindow
31 void resizeEvent(QResizeEvent *event) override;
32 void mixer_created(Mixer *mixer);
34 // Used to release FBOs on the global ResourcePool. Call after the
35 // mixer has been shut down but not destroyed yet.
36 void mixer_shutting_down();
40 void x264_bitrate_triggered();
41 void exit_triggered();
42 void about_triggered();
43 void input_mapping_triggered();
44 void transition_clicked(int transition_number);
45 void channel_clicked(int channel_number);
46 void wb_button_clicked(int channel_number);
47 void set_transition_names(std::vector<std::string> transition_names);
48 void update_channel_name(Mixer::Output output, const std::string &name);
49 void update_channel_color(Mixer::Output output, const std::string &color);
50 void gain_staging_knob_changed(unsigned bus_index, int value);
51 void final_makeup_gain_knob_changed(int value);
52 void cutoff_knob_changed(int value);
53 void eq_knob_changed(unsigned bus_index, EQBand band, int value);
54 void limiter_threshold_knob_changed(int value);
55 void compressor_threshold_knob_changed(unsigned bus_index, int value);
56 void mini_fader_changed(int bus, double db_volume);
57 void reset_meters_button_clicked();
61 void setup_audio_miniview();
62 void setup_audio_expanded_view();
63 bool eventFilter(QObject *watched, QEvent *event) override;
64 void set_white_balance(int channel_number, int x, int y);
65 void update_cutoff_labels(float cutoff_hz);
66 void update_eq_label(unsigned bus_index, EQBand band, float gain_db);
68 // Called from DiskSpaceEstimator.
69 void report_disk_space(off_t free_bytes, double estimated_seconds_left);
71 // Called from the mixer.
72 void audio_level_callback(float level_lufs, float peak_db, std::vector<AudioMixer::BusLevel> bus_levels, float global_level_lufs, float range_low_lufs, float range_high_lufs, float final_makeup_gain_db, float correlation);
73 std::chrono::steady_clock::time_point last_audio_level_callback;
75 void audio_state_changed();
78 QLabel *disk_free_label;
79 QPushButton *transition_btn1, *transition_btn2, *transition_btn3;
80 std::vector<Ui::Display *> previews;
81 std::vector<Ui::AudioMiniView *> audio_miniviews;
82 std::vector<Ui::AudioExpandedView *> audio_expanded_views;
83 int current_wb_pick_display = -1;
86 extern MainWindow *global_mainwindow;