forked from cmus/cmus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Take opus output gain into account when checking replaygain_limit peak (
cmus#1201) * Add information about opus output gain to comments * Add information about output gain to track_info struct * Take output_gain into account when checking replaygain_limit * Prevent output_gain comment from being overwriten by user comments * Use keyvals_add instead of comments_add_const to avoid having to make output_gain "interesting" * Use xmalloc0 in favor of xmalloc+memset for speed improvement * Don't free val, since keyvals_add doesn't xstrdup it * Initialize output_gain to 0 during track_info initialization * Calculate peak from output_gain if missing, instead of doing a separate scale check Co-authored-by: Rin Takanashi <[email protected]>
- Loading branch information
Showing
4 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters