Basic grunt-work, untested and unfinished, but it compiles.
[dcpomatic.git] / src / lib / analyse_audio_job.h
index ce86e62cf0c9741663dca3e56f41f4b0e171d0d0..7e5ea4719112aceb753cb02608838167bccdf317 100644 (file)
@@ -25,6 +25,7 @@
 #include "job.h"
 #include "audio_point.h"
 #include "types.h"
+#include "dcpomatic_time.h"
 
 class AudioBuffers;
 class AudioAnalysis;
@@ -55,7 +56,7 @@ public:
        }
 
 private:
-       void analyse (boost::shared_ptr<const AudioBuffers>);
+       void analyse (boost::shared_ptr<const AudioBuffers>, DCPTime time);
 
        boost::shared_ptr<const Playlist> _playlist;
 
@@ -63,8 +64,8 @@ private:
        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;