diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-03 15:31:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-03 15:31:21 +0100 |
| commit | f98caf4af896e9be943046b84586da5c2e103f18 (patch) | |
| tree | 993f719e293667c432c95026dc2bfd53d5b84982 /src/lib/audio_content.cc | |
| parent | 92c377d1b9e781fbb4b1f1b7a76ca7dba0bd637f (diff) | |
Make show audio work on the whole DCP, not individual content.
Diffstat (limited to 'src/lib/audio_content.cc')
| -rw-r--r-- | src/lib/audio_content.cc | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/lib/audio_content.cc b/src/lib/audio_content.cc index b6749d20b..46b80a21c 100644 --- a/src/lib/audio_content.cc +++ b/src/lib/audio_content.cc @@ -25,6 +25,7 @@ #include "config.h" #include "frame_rate_change.h" #include "raw_convert.h" +#include "playlist.h" #include <libcxml/cxml.h> #include <boost/foreach.hpp> @@ -129,32 +130,6 @@ AudioContent::set_audio_delay (int d) signal_changed (AudioContentProperty::AUDIO_DELAY); } -boost::signals2::connection -AudioContent::analyse_audio (boost::function<void()> finished) -{ - shared_ptr<const Film> film = _film.lock (); - DCPOMATIC_ASSERT (film); - - shared_ptr<AnalyseAudioJob> job (new AnalyseAudioJob (film, dynamic_pointer_cast<AudioContent> (shared_from_this()))); - boost::signals2::connection c = job->Finished.connect (finished); - JobManager::instance()->add (job); - - return c; -} - -boost::filesystem::path -AudioContent::audio_analysis_path () const -{ - shared_ptr<const Film> film = _film.lock (); - if (!film) { - return boost::filesystem::path (); - } - - boost::filesystem::path p = film->audio_analysis_dir (); - p /= digest() + "_" + audio_mapping().digest(); - return p; -} - string AudioContent::technical_summary () const { |
