diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-02-27 22:26:57 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-02-27 22:26:57 +0100 |
| commit | bcc4e2f7dc4cd5658e199ddacb7202b00ec72cf1 (patch) | |
| tree | 70a6d59908b1d1391e2f9ecd2c8bd17890b3bbc5 /src/lib/hints.cc | |
| parent | a2ceaa313a2b8ba28516c935f7f8b82d69957b77 (diff) | |
Add and use dB/linear conversion functions.
Diffstat (limited to 'src/lib/hints.cc')
| -rw-r--r-- | src/lib/hints.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/hints.cc b/src/lib/hints.cc index 6cb037ed0..3edceeee3 100644 --- a/src/lib/hints.cc +++ b/src/lib/hints.cc @@ -235,7 +235,7 @@ Hints::thread () for (size_t i = 0; i < sample_peak.size(); ++i) { float const peak = max (sample_peak[i].peak, true_peak.empty() ? 0 : true_peak[i]); - float const peak_dB = 20 * log10 (peak) + an->gain_correction (film->playlist ()); + float const peak_dB = linear_to_db(peak) + an->gain_correction(film->playlist()); if (peak_dB > -3) { ch += dcp::raw_convert<string> (short_audio_channel_name (i)) + ", "; } |
