diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-04-20 00:10:31 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-04-20 00:43:03 +0200 |
| commit | fa5f3a8bf77209da27acc33cf144e2e4500a2600 (patch) | |
| tree | 5632e51e273ad3fd8f9eefecc9241c87cf245d4e /src/lib/audio_analysis.h | |
| parent | 6e003ef110717dd3e4ecdb009d33671f7834e024 (diff) | |
Add LEQ(m) when analysing audio (#1382).v2.15.52
Diffstat (limited to 'src/lib/audio_analysis.h')
| -rw-r--r-- | src/lib/audio_analysis.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/audio_analysis.h b/src/lib/audio_analysis.h index 3684db96a..99a69edb4 100644 --- a/src/lib/audio_analysis.h +++ b/src/lib/audio_analysis.h @@ -116,6 +116,14 @@ public: _sample_rate = sr; } + void set_leqm (double leqm) { + _leqm = leqm; + } + + boost::optional<double> leqm () const { + return _leqm; + } + void write (boost::filesystem::path); float gain_correction (boost::shared_ptr<const Playlist> playlist); @@ -126,6 +134,7 @@ private: std::vector<float> _true_peak; boost::optional<float> _integrated_loudness; boost::optional<float> _loudness_range; + boost::optional<double> _leqm; /** If this analysis was run on a single piece of * content we store its gain in dB when the analysis * happened. |
