Go back to player having a playlist and not assuming it uses the film's content.
[dcpomatic.git] / src / lib / analyse_audio_job.h
index 1794ab3dcae1b4f6f8755de341f761d237ead5bf..234424bb38c567e1d71a6c96e61a1b299554d5ad 100644 (file)
@@ -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;
 };
-