diff options
| author | Carl Hetherington <cth@carlh.net> | 2018-03-26 16:26:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2018-03-26 16:26:32 +0100 |
| commit | f0192490565c72aa9838f40cbab56c4c0c60e522 (patch) | |
| tree | cf0f287a164f3a25607f0df13210a5dcc0ffd235 /src/lib/audio_analysis.h | |
| parent | 00dffac67c88b509c1c77da85fe2769049714135 (diff) | |
Add time axis to audio analysis (part of #1082).
Diffstat (limited to 'src/lib/audio_analysis.h')
| -rw-r--r-- | src/lib/audio_analysis.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/lib/audio_analysis.h b/src/lib/audio_analysis.h index 6da651c95..0a5e6194d 100644 --- a/src/lib/audio_analysis.h +++ b/src/lib/audio_analysis.h @@ -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. @@ -100,6 +100,22 @@ public: _analysis_gain = gain; } + boost::optional<int64_t> samples_per_point () const { + return _samples_per_point; + } + + void set_samples_per_point (int64_t spp) { + _samples_per_point = spp; + } + + boost::optional<int> sample_rate () const { + return _sample_rate; + } + + void set_sample_rate (int sr) { + _sample_rate = sr; + } + void write (boost::filesystem::path); float gain_correction (boost::shared_ptr<const Playlist> playlist); @@ -115,6 +131,8 @@ private: * happened. */ boost::optional<double> _analysis_gain; + boost::optional<int64_t> _samples_per_point; + boost::optional<int> _sample_rate; static int const _current_state_version; }; |
