2 Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
4 This file is part of DCP-o-matic.
6 DCP-o-matic is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 DCP-o-matic is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
22 #include "lib/audio_analysis.h"
23 #include "lib/playlist.h"
25 #include <boost/shared_ptr.hpp>
26 #include <boost/signals2.hpp>
31 class AudioDialog : public wxDialog
34 AudioDialog (wxWindow* parent, boost::shared_ptr<Film> film, boost::shared_ptr<Content> content = boost::shared_ptr<Content> ());
36 bool Show (bool show = true);
39 void content_changed (int);
40 void channel_clicked (wxCommandEvent &);
41 void type_clicked (wxCommandEvent &);
42 void smoothing_changed ();
43 void try_to_load_analysis ();
44 void analysis_finished ();
45 void setup_statistics ();
47 boost::shared_ptr<AudioAnalysis> _analysis;
48 boost::weak_ptr<Film> _film;
49 boost::weak_ptr<Content> _content;
51 boost::shared_ptr<const Playlist> _playlist;
53 wxStaticText* _sample_peak;
54 wxStaticText* _true_peak;
55 wxStaticText* _integrated_loudness;
56 wxStaticText* _loudness_range;
57 wxCheckBox* _channel_checkbox[MAX_DCP_AUDIO_CHANNELS];
58 wxCheckBox* _type_checkbox[AudioPoint::COUNT];
60 boost::signals2::scoped_connection _film_connection;
61 boost::signals2::scoped_connection _analysis_finished_connection;