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
8d217567
Commit
8d217567
authored
Oct 17, 2009
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replay_gain: added setting "replaygain off"
There was no setting for disabling replay gain. It was off when the "replaygain" setting was not there.
parent
a17d8143
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
mpd.conf.5
doc/mpd.conf.5
+1
-1
mpdconf.example
doc/mpdconf.example
+2
-2
replay_gain.c
src/replay_gain.c
+1
-1
No files found.
doc/mpd.conf.5
View file @
8d217567
...
...
@@ -168,7 +168,7 @@ only choice) if MPD was compiled without libsamplerate.
For an up-to-date list of available converters, please see the libsamplerate
documentation (available online at <\fBhttp://www.mega-nerd.com/SRC/\fP>).
.TP
.B replaygain <album or track>
.B replaygain <
off or
album or track>
If specified, mpd will adjust the volume of songs played using ReplayGain tags
(see <\fBhttp://www.replaygain.org/\fP>). Setting this to "album" will adjust
volume using the album's ReplayGain tags, while setting it to "track" will
...
...
doc/mpdconf.example
View file @
8d217567
...
...
@@ -299,8 +299,8 @@ input {
# Normalization automatic volume adjustments ##################################
#
# This setting specifies the type of ReplayGain to use. This setting can have
# the argument "
album" or "track". See <http://www.replaygain.org> for more
#
details. This setting is disabled
by default.
# the argument "
off", "album" or "track". See <http://www.replaygain.org>
#
for more details. This setting is off
by default.
#
#replaygain "album"
#
...
...
src/replay_gain.c
View file @
8d217567
...
...
@@ -44,7 +44,7 @@ void replay_gain_global_init(void)
{
const
struct
config_param
*
param
=
config_get_param
(
CONF_REPLAYGAIN
);
if
(
param
==
NULL
)
{
if
(
param
==
NULL
||
strcmp
(
param
->
value
,
"off"
)
==
0
)
{
replay_gain_mode
=
REPLAY_GAIN_OFF
;
}
else
if
(
strcmp
(
param
->
value
,
"track"
)
==
0
)
{
replay_gain_mode
=
REPLAY_GAIN_TRACK
;
...
...
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