summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-10-16 18:30:34 +0200
committerMax Kellermann <max@musicpd.org>2020-10-16 18:30:51 +0200
commit78ee663660f5e38321f6bb66b4e66e1380888f37 (patch)
treecfa25e62b9f40691324c2bd2cbdc577835ecec3d /src
parentc32a809d38fb14f7dc53ff96bb3191569d0bfa20 (diff)
decoder/opus: move comment to `output_gain` field
Diffstat (limited to 'src')
-rw-r--r--src/decoder/plugins/OpusDecoderPlugin.cxx9
1 files 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;