From 3339d3bce70afe9ae2ca10e9fcfc4b54b748fbf4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 8 Apr 2021 21:32:44 +0200 Subject: Assorted C++11/formatting cleanups. --- src/lib/audio_analysis.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/lib/audio_analysis.h') diff --git a/src/lib/audio_analysis.h b/src/lib/audio_analysis.h index c3aec6e29..263e8a8a0 100644 --- a/src/lib/audio_analysis.h +++ b/src/lib/audio_analysis.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2018 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,9 +18,11 @@ */ + #ifndef DCPOMATIC_AUDIO_ANALYSIS_H #define DCPOMATIC_AUDIO_ANALYSIS_H + #include "dcpomatic_time.h" #include "audio_point.h" #include @@ -28,12 +30,15 @@ #include #include + namespace xmlpp { class Element; } + class Playlist; + class AudioAnalysis : public boost::noncopyable { public: @@ -129,7 +134,7 @@ public: float gain_correction (std::shared_ptr playlist); private: - std::vector > _data; + std::vector> _data; std::vector _sample_peak; std::vector _true_peak; boost::optional _integrated_loudness; @@ -140,10 +145,11 @@ private: * happened. */ boost::optional _analysis_gain; - int64_t _samples_per_point; - int _sample_rate; + int64_t _samples_per_point = 0; + int _sample_rate = 0; static int const _current_state_version; }; + #endif -- cgit v1.2.3