diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-17 16:13:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-17 16:13:17 +0100 |
| commit | 0f7110dc6a34640a55ba5bdc16dd23f2b9f47d30 (patch) | |
| tree | 6d2bcdb51f22177fac71ba9f0937b0d594ff61d7 /src/lib | |
| parent | b48d3719ae980fb8c8dccf4194154e0300565fbd (diff) | |
AnalyseAudioJob does not need an explicit playlist.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/analyse_audio_job.cc | 3 | ||||
| -rw-r--r-- | src/lib/analyse_audio_job.h | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/src/lib/analyse_audio_job.cc b/src/lib/analyse_audio_job.cc index 98bed30dc..4282cd66f 100644 --- a/src/lib/analyse_audio_job.cc +++ b/src/lib/analyse_audio_job.cc @@ -36,9 +36,8 @@ using boost::dynamic_pointer_cast; int const AnalyseAudioJob::_num_points = 1024; -AnalyseAudioJob::AnalyseAudioJob (shared_ptr<const Film> f, shared_ptr<const Playlist> p) +AnalyseAudioJob::AnalyseAudioJob (shared_ptr<const Film> f) : Job (f) - , _playlist (p) , _done (0) , _samples_per_point (1) , _overall_peak (0) diff --git a/src/lib/analyse_audio_job.h b/src/lib/analyse_audio_job.h index cc913e1f3..1794ab3dc 100644 --- a/src/lib/analyse_audio_job.h +++ b/src/lib/analyse_audio_job.h @@ -26,19 +26,18 @@ #include "types.h" class AudioBuffers; -class Playlist; /** @class AnalyseAudioJob - * @brief A job to analyse the audio of a playlist and make a note of its + * @brief A job to analyse the audio of a film and make a note of its * broad peak and RMS levels. * * After computing the peak and RMS levels the job will write a file - * to Playlist::audio_analysis_path. + * to Film::audio_analysis_path. */ class AnalyseAudioJob : public Job { public: - AnalyseAudioJob (boost::shared_ptr<const Film>, boost::shared_ptr<const Playlist>); + AnalyseAudioJob (boost::shared_ptr<const Film>); std::string name () const; std::string json_name () const; @@ -47,7 +46,6 @@ public: private: void analyse (boost::shared_ptr<const AudioBuffers>); - boost::shared_ptr<const Playlist> _playlist; int64_t _done; int64_t _samples_per_point; std::vector<AudioPoint> _current; |
