From fa5f3a8bf77209da27acc33cf144e2e4500a2600 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 20 Apr 2020 00:10:31 +0200 Subject: Add LEQ(m) when analysing audio (#1382). --- src/lib/audio_analysis.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/lib/audio_analysis.h') 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 leqm () const { + return _leqm; + } + void write (boost::filesystem::path); float gain_correction (boost::shared_ptr playlist); @@ -126,6 +134,7 @@ private: std::vector _true_peak; boost::optional _integrated_loudness; boost::optional _loudness_range; + boost::optional _leqm; /** If this analysis was run on a single piece of * content we store its gain in dB when the analysis * happened. -- cgit v1.2.3