summaryrefslogtreecommitdiff
path: root/src/wx/audio_panel.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-11-21 01:59:04 +0000
committerCarl Hetherington <cth@carlh.net>2018-11-21 01:59:04 +0000
commit254b3044d72de6b033d7c584f5abd2b9aa70aad5 (patch)
tree8a5c83c1b2dea690672663dedb2f3aa50f4473dc /src/wx/audio_panel.cc
parentc31b9542c58ae1cbfae7ec3ba4911359fd010ba2 (diff)
Take Film pointer out of Content.
Diffstat (limited to 'src/wx/audio_panel.cc')
-rw-r--r--src/wx/audio_panel.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/audio_panel.cc b/src/wx/audio_panel.cc
index 954d1676d..38504eacf 100644
--- a/src/wx/audio_panel.cc
+++ b/src/wx/audio_panel.cc
@@ -266,7 +266,7 @@ AudioPanel::setup_description ()
return;
}
- checked_set (_description, ac.front()->audio->processing_description ());
+ checked_set (_description, ac.front()->audio->processing_description(_parent->film()));
}
void
@@ -304,7 +304,7 @@ AudioPanel::setup_sensitivity ()
}
string why_not;
- bool const can_reference = dcp && dcp->can_reference_audio (why_not);
+ bool const can_reference = dcp && dcp->can_reference_audio (_parent->film(), why_not);
setup_refer_button (_reference, _reference_note, dcp, can_reference, why_not);
if (_reference->GetValue ()) {
@@ -353,7 +353,7 @@ AudioPanel::setup_peak ()
_peak->SetLabel (wxT (""));
} else {
shared_ptr<Playlist> playlist (new Playlist);
- playlist->add (sel.front ());
+ playlist->add (_parent->film(), sel.front());
try {
shared_ptr<AudioAnalysis> analysis (new AudioAnalysis (_parent->film()->audio_analysis_path (playlist)));
peak_dB = 20 * log10 (analysis->overall_sample_peak().first.peak) + analysis->gain_correction (playlist);