jeffvli / sonixd

A full-featured Subsonic/Jellyfin compatible desktop music player
GNU General Public License v3.0
1.86k stars 74 forks source link

Add support for replaygain #12

Open jeffvli opened 3 years ago

jeffvli commented 3 years ago

Read replaygain tags from the track and apply a volume transformation based on it.

https://wiki.hydrogenaud.io/index.php?title=ReplayGain_2.0_specification#Gain_calculation

dweymouth commented 2 years ago

This should be easy to do with the new mpv player (at least for Subsonic servers) since mpv has replaygain options available https://mpv.io/manual/master/#options-replaygain and most Subsonic servers will preserve the replay gain tags if they are present in the source files (not sure about Jellyfin streams).