diff options
author | Daniel Seuthe <daniel+mpd@seuthe.org> | 2010-05-30 17:05:43 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-05-30 17:06:08 +0200 |
commit | e8310211e216a1de0b4e856496633966d106b831 (patch) | |
tree | a117c252f846b944a73a85f3f8c3299f0e7eb594 /src/filter | |
parent | 3709b9aa11328c50dff9f7742ce8b5ef967d5d4d (diff) | |
download | mpd-e8310211e216a1de0b4e856496633966d106b831.tar.gz mpd-e8310211e216a1de0b4e856496633966d106b831.tar.xz mpd-e8310211e216a1de0b4e856496633966d106b831.zip |
filter/replay_gain: added option "replaygain_limit"
Diffstat (limited to 'src/filter')
-rw-r--r-- | src/filter/replay_gain_filter_plugin.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/filter/replay_gain_filter_plugin.c b/src/filter/replay_gain_filter_plugin.c index a0133e493..4d6080b73 100644 --- a/src/filter/replay_gain_filter_plugin.c +++ b/src/filter/replay_gain_filter_plugin.c @@ -78,11 +78,8 @@ static void replay_gain_filter_update(struct replay_gain_filter *filter) { if (filter->mode != REPLAY_GAIN_OFF) { - const struct replay_gain_tuple *tuple = - &filter->info.tuples[filter->mode]; - float scale = replay_gain_tuple_defined(tuple) - ? replay_gain_tuple_scale(tuple, replay_gain_preamp) - : replay_gain_missing_preamp; + float scale = replay_gain_tuple_scale(&filter->info.tuples[filter->mode], + replay_gain_preamp, replay_gain_missing_preamp, replay_gain_limit); g_debug("scale=%f\n", (double)scale); filter->volume = pcm_float_to_volume(scale); |