diff options
author | Max Kellermann <max@musicpd.org> | 2016-11-25 11:13:08 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-11-25 11:13:08 +0100 |
commit | 77c1f5487668569abb24dc458c40f019539dda52 (patch) | |
tree | 028c4bb9714a165f7a9ccb4984ae346267c719a7 /src/decoder | |
parent | dc5984d0e0fb28ce4443c7bd1791fa1363fb7bed (diff) |
ReplayGainConfig: add struct ReplayGainConfig, move globals to ReplayGainGlobal.cxx
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/Bridge.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/decoder/Bridge.cxx b/src/decoder/Bridge.cxx index f878a6708..4bd5e5c8b 100644 --- a/src/decoder/Bridge.cxx +++ b/src/decoder/Bridge.cxx @@ -30,7 +30,7 @@ #include "pcm/PcmConvert.hxx" #include "tag/Tag.hxx" #include "AudioConfig.hxx" -#include "ReplayGainConfig.hxx" +#include "ReplayGainGlobal.hxx" #include "Log.hxx" #include "input/InputStream.hxx" #include "util/ConstBuffer.hxx" @@ -599,9 +599,7 @@ DecoderBridge::SubmitReplayGain(const ReplayGainInfo *new_replay_gain_info) const auto &tuple = new_replay_gain_info->Get(rgm); const auto scale = - tuple.CalculateScale(replay_gain_preamp, - replay_gain_missing_preamp, - replay_gain_limit); + tuple.CalculateScale(replay_gain_config); dc.replay_gain_db = 20.0 * log10f(scale); } |