Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
78ee6636
Commit
78ee6636
authored
Oct 16, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/opus: move comment to `output_gain` field
parent
c32a809d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
OpusDecoderPlugin.cxx
src/decoder/plugins/OpusDecoderPlugin.cxx
+4
-5
No files found.
src/decoder/plugins/OpusDecoderPlugin.cxx
View file @
78ee6636
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment