From 78ee663660f5e38321f6bb66b4e66e1380888f37 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 16 Oct 2020 18:30:34 +0200 Subject: [PATCH] decoder/opus: move comment to `output_gain` field --- src/decoder/plugins/OpusDecoderPlugin.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/decoder/plugins/OpusDecoderPlugin.cxx b/src/decoder/plugins/OpusDecoderPlugin.cxx index 80e13ae31..05200e07a 100644 --- a/src/decoder/plugins/OpusDecoderPlugin.cxx +++ b/src/decoder/plugins/OpusDecoderPlugin.cxx @@ -76,8 +76,9 @@ class MPDOpusDecoder final : public OggDecoder { opus_int16 *output_buffer = nullptr; /** - * The output gain from the Opus header. Initialized by - * OnOggBeginning(). + * The output gain from the Opus header in dB that should be + * applied unconditionally, but is often used specifically for + * ReplayGain. Initialized by OnOggBeginning(). */ float output_gain; @@ -250,9 +251,7 @@ MPDOpusDecoder::HandleTags(const ogg_packet &packet) rgi.Clear(); /** - * Output gain is a Q7.8 fixed point number in dB that should be, - * applied unconditionally, but is often used specifically for - * ReplayGain. Add 5dB to compensate for the different + * Add 5dB to compensate for the different * reference levels between ReplayGain (89dB) and EBU R128 (-23 LUFS). */ rgi.track.gain = output_gain + 5;