X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Faudio_dialog.h;h=b6cc4125426529f9c5ec729871d4a7147e7bc9ef;hb=2ed96cf8baea81ab3b6331ae029bfa76ef2522e1;hp=62811091a8b9c14ce0c7b8eeb5295c4836cc04b9;hpb=45a523803b72cf132b44b6feec543e3587becf3a;p=dcpomatic.git diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h index 62811091a..b6cc41254 100644 --- a/src/wx/audio_dialog.h +++ b/src/wx/audio_dialog.h @@ -29,22 +29,27 @@ class Film; class AudioDialog : public wxDialog { public: - AudioDialog (wxWindow *); + AudioDialog (wxWindow *, boost::shared_ptr film); - void set_content (boost::shared_ptr); + void set_playlist (boost::shared_ptr); private: void content_changed (int); void channel_clicked (wxCommandEvent &); void type_clicked (wxCommandEvent &); - void smoothing_changed (wxScrollEvent &); + void smoothing_changed (); void try_to_load_analysis (); void analysis_finished (); + void setup_peak_time (); - boost::shared_ptr _content; + boost::shared_ptr _playlist; + boost::shared_ptr _analysis; + boost::weak_ptr _film; AudioPlot* _plot; - wxCheckBox* _channel_checkbox[MAX_AUDIO_CHANNELS]; + wxStaticText* _peak_time; + wxCheckBox* _channel_checkbox[MAX_DCP_AUDIO_CHANNELS]; wxCheckBox* _type_checkbox[AudioPoint::COUNT]; wxSlider* _smoothing; - boost::signals2::scoped_connection _content_changed_connection; + boost::signals2::scoped_connection _playlist_connection; + boost::signals2::scoped_connection _analysis_finished_connection; };