diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-29 23:19:04 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-01 17:27:02 +0100 |
| commit | c5b9ad09ab5eaf032b0816f619ab5d75254e8597 (patch) | |
| tree | 2d1cba3086b6448f454ecac9d1dd0875a12b5214 /src/lib/analyse_audio_job.h | |
| parent | f9fcc34179a6f86425427741c60d8876099d3ed3 (diff) | |
Go back to player having a playlist and not assuming it uses the film's content.
Diffstat (limited to 'src/lib/analyse_audio_job.h')
| -rw-r--r-- | src/lib/analyse_audio_job.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/analyse_audio_job.h b/src/lib/analyse_audio_job.h index 1794ab3dc..234424bb3 100644 --- a/src/lib/analyse_audio_job.h +++ b/src/lib/analyse_audio_job.h @@ -26,6 +26,7 @@ #include "types.h" class AudioBuffers; +class Playlist; /** @class AnalyseAudioJob * @brief A job to analyse the audio of a film and make a note of its @@ -37,7 +38,7 @@ class AudioBuffers; class AnalyseAudioJob : public Job { public: - AnalyseAudioJob (boost::shared_ptr<const Film>); + AnalyseAudioJob (boost::shared_ptr<const Film>, boost::shared_ptr<const Playlist>); std::string name () const; std::string json_name () const; @@ -46,6 +47,8 @@ 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; @@ -57,4 +60,3 @@ private: static const int _num_points; }; - |
