diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-20 00:10:31 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-20 00:43:03 +0200 |
| commit | fa5f3a8bf77209da27acc33cf144e2e4500a2600 (patch) | |
| tree | 5632e51e273ad3fd8f9eefecc9241c87cf245d4e /src/wx | |
| parent | 6e003ef110717dd3e4ecdb009d33671f7834e024 (diff) | |
Add LEQ(m) when analysing audio (#1382).v2.15.52
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/audio_dialog.cc | 10 | ||||
| -rw-r--r-- | src/wx/audio_dialog.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/wx/audio_dialog.cc b/src/wx/audio_dialog.cc index 2f1f1c826..efc506aff 100644 --- a/src/wx/audio_dialog.cc +++ b/src/wx/audio_dialog.cc @@ -89,6 +89,8 @@ AudioDialog::AudioDialog (wxWindow* parent, shared_ptr<Film> film, shared_ptr<Co left->Add (_integrated_loudness, 0, wxTOP, DCPOMATIC_SIZER_Y_GAP); _loudness_range = new StaticText (this, wxT ("")); left->Add (_loudness_range, 0, wxTOP, DCPOMATIC_SIZER_Y_GAP); + _leqm = new StaticText (this, wxT("")); + left->Add (_leqm, 0, wxTOP, DCPOMATIC_SIZER_Y_GAP); lr_sizer->Add (left, 1, wxALL | wxEXPAND, 12); @@ -414,6 +416,14 @@ AudioDialog::setup_statistics () ) ); } + + if (static_cast<bool>(_analysis->leqm())) { + _leqm->SetLabel( + wxString::Format( + _("LEQ(m) %.2fdB"), _analysis->leqm().get() + _analysis->gain_correction(_playlist) + ) + ); + } } bool diff --git a/src/wx/audio_dialog.h b/src/wx/audio_dialog.h index 3a02fd87f..34c174cf4 100644 --- a/src/wx/audio_dialog.h +++ b/src/wx/audio_dialog.h @@ -59,6 +59,7 @@ private: wxStaticText* _true_peak; wxStaticText* _integrated_loudness; wxStaticText* _loudness_range; + wxStaticText* _leqm; wxCheckBox* _channel_checkbox[MAX_DCP_AUDIO_CHANNELS]; wxCheckBox* _type_checkbox[AudioPoint::COUNT]; wxSlider* _smoothing; |
