Write config.xml with CR/LF terminators on Windows.
[dcpomatic.git] / src / lib / analyse_audio_job.h
index ce86e62cf0c9741663dca3e56f41f4b0e171d0d0..d8dcda2f19c43b8d18b22a53cb5ce81c96d70e4c 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
@@ -25,6 +25,7 @@
 #include "job.h"
 #include "audio_point.h"
 #include "types.h"
+#include "dcpomatic_time.h"
 
 class AudioBuffers;
 class AudioAnalysis;
@@ -43,7 +44,7 @@ class Filter;
 class AnalyseAudioJob : public Job
 {
 public:
-       AnalyseAudioJob (boost::shared_ptr<const Film>, boost::shared_ptr<const Playlist>);
+       AnalyseAudioJob (boost::shared_ptr<const Film>, boost::shared_ptr<const Playlist>, bool from_zero);
        ~AnalyseAudioJob ();
 
        std::string name () const;
@@ -55,16 +56,18 @@ public:
        }
 
 private:
-       void analyse (boost::shared_ptr<const AudioBuffers>);
+       void analyse (boost::shared_ptr<const AudioBuffers>, DCPTime time);
 
        boost::shared_ptr<const Playlist> _playlist;
+       DCPTime _start;
+       bool _from_zero;
 
        int64_t _done;
        int64_t _samples_per_point;
        AudioPoint* _current;
 
-       float _sample_peak;
-       Frame _sample_peak_frame;
+       float* _sample_peak;
+       Frame* _sample_peak_frame;
 
        boost::shared_ptr<AudioAnalysis> _analysis;