Adding on the fly volume normalization support. Code originally from mplayer, ported by syscrash, cleaned up by avuton, and further cleaned up by me (jat).

git-svn-id: https://svn.musicpd.org/mpd/trunk@4424 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman
2006-07-22 00:53:37 +00:00
parent c4d1344f8c
commit cf90f8194f
6 changed files with 35 additions and 1 deletions

View File

@@ -92,6 +92,9 @@ Musepack, and MP3 (through ID3v2 replaygain tags, not APEv2) are supported.
.B replaygain_preamp <-15 to 15>
This is the gain (in dB) applied to songs with replaygain tags.
.TP
.B volume_normalization <yes or no>
If yes, mpd will normalize the volume of songs as they play. Default is no.
.TP
.B audio_buffer_size <size in KiB>
This specifies the size of the audio output buffer that mpd uses. The default
is 2048.

View File

@@ -126,7 +126,7 @@ pid_file "~/.mpd/mpd.pid"
##########################################################
################# REPLAYGAIN #############################
################# Normalization ##########################
#
# Use Replay Gain (album or track)
# http://www.replaygain.org
@@ -138,6 +138,13 @@ pid_file "~/.mpd/mpd.pid"
#
#replaygain_preamp "0"
#
# Normalization increases the amplitude of the audio
# waveform to the maximum level without introducing any
# distortion into the recording. This option will
# normalize when replaygain is not on, utilizing the
# CPU for calculation.
#
#volume_normalization "yes"
##########################################################