diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-11-18 17:07:07 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-11-18 20:52:20 +0000 |
| commit | 419afb743ad2aaf1ea301356ac09f9a26ee15567 (patch) | |
| tree | a90a3776b0919871750c173c2bb753321ddf7282 /src/wx/audio_panel.cc | |
| parent | e07926b8b0d3d93c2b670aea4b49230170a3532b (diff) | |
Basic (untested) ebur128 (#368).
Diffstat (limited to 'src/wx/audio_panel.cc')
| -rw-r--r-- | src/wx/audio_panel.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc index b1904107b..ff62acc67 100644 --- a/src/wx/audio_panel.cc +++ b/src/wx/audio_panel.cc @@ -303,8 +303,8 @@ AudioPanel::setup_peak () playlist->add (sel.front ()); try { shared_ptr<AudioAnalysis> analysis (new AudioAnalysis (_parent->film()->audio_analysis_path (playlist))); - if (analysis->peak ()) { - float const peak_dB = 20 * log10 (analysis->peak().get()) + analysis->gain_correction (playlist); + if (analysis->sample_peak ()) { + float const peak_dB = 20 * log10 (analysis->sample_peak().get()) + analysis->gain_correction (playlist); if (peak_dB > -3) { alert = true; } |
