Commit 78ee6636 authored by Max Kellermann's avatar Max Kellermann

decoder/opus: move comment to `output_gain` field

parent c32a809d
...@@ -76,8 +76,9 @@ class MPDOpusDecoder final : public OggDecoder { ...@@ -76,8 +76,9 @@ class MPDOpusDecoder final : public OggDecoder {
opus_int16 *output_buffer = nullptr; opus_int16 *output_buffer = nullptr;
/** /**
* The output gain from the Opus header. Initialized by * The output gain from the Opus header in dB that should be
* OnOggBeginning(). * applied unconditionally, but is often used specifically for
* ReplayGain. Initialized by OnOggBeginning().
*/ */
float output_gain; float output_gain;
...@@ -250,9 +251,7 @@ MPDOpusDecoder::HandleTags(const ogg_packet &packet) ...@@ -250,9 +251,7 @@ MPDOpusDecoder::HandleTags(const ogg_packet &packet)
rgi.Clear(); rgi.Clear();
/** /**
* Output gain is a Q7.8 fixed point number in dB that should be, * Add 5dB to compensate for the different
* applied unconditionally, but is often used specifically for
* ReplayGain. Add 5dB to compensate for the different
* reference levels between ReplayGain (89dB) and EBU R128 (-23 LUFS). * reference levels between ReplayGain (89dB) and EBU R128 (-23 LUFS).
*/ */
rgi.track.gain = output_gain + 5; rgi.track.gain = output_gain + 5;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment