diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-04-16 01:01:59 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-04-21 00:52:07 +0200 |
| commit | 191adfe030803a49588afc4b9087da27654d946b (patch) | |
| tree | a64625a3e4eb19cd2c9f7baea4eb22ad0c4ef050 /src/lib/analyse_audio_job.h | |
| parent | e5ad3fb4402d7df52c346408cbacbf68af4fa05a (diff) | |
Split audio analysis code off from the job.
Diffstat (limited to 'src/lib/analyse_audio_job.h')
| -rw-r--r-- | src/lib/analyse_audio_job.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/lib/analyse_audio_job.h b/src/lib/analyse_audio_job.h index 81287d2d2..864a6a7cd 100644 --- a/src/lib/analyse_audio_job.h +++ b/src/lib/analyse_audio_job.h @@ -18,10 +18,13 @@ */ + /** @file src/lib/analyse_audio_job.h * @brief AnalyseAudioJob class. */ + +#include "audio_analyser.h" #include "job.h" #include "audio_point.h" #include "types.h" @@ -29,6 +32,7 @@ #include <leqm_nrt.h> #include <boost/scoped_ptr.hpp> + class AudioBuffers; class AudioAnalysis; class Playlist; @@ -36,6 +40,7 @@ class AudioPoint; class AudioFilterGraph; class Filter; + /** @class AnalyseAudioJob * @brief A job to analyse the audio of a film and make a note of its * broad peak and RMS levels. @@ -58,27 +63,11 @@ public: } private: - void analyse (std::shared_ptr<const AudioBuffers>, dcpomatic::DCPTime time); + AudioAnalyser _analyser; std::shared_ptr<const Playlist> _playlist; /** playlist's audio analysis path when the job was created */ boost::filesystem::path _path; - dcpomatic::DCPTime _start; - bool _from_zero; - - Frame _done; - Frame _samples_per_point; - AudioPoint* _current; - - float* _sample_peak; - Frame* _sample_peak_frame; - - std::shared_ptr<AudioAnalysis> _analysis; - - std::shared_ptr<AudioFilterGraph> _ebur128; - std::vector<Filter const *> _filters; - - boost::scoped_ptr<leqm_nrt::Calculator> _leqm; static const int _num_points; }; |
