diff options
author | Daniel Seuthe <daniel+mpd@seuthe.org> | 2010-05-18 20:39:32 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-05-18 20:39:32 +0200 |
commit | 733962db2fb6cd3dc17aaf6630414823f4cf84e3 (patch) | |
tree | e792c45e969537389404b820a13b0cdd3da64754 | |
parent | f824ecdfa10beb7241f447674193e0e4a5ae8eb1 (diff) | |
download | mpd-733962db2fb6cd3dc17aaf6630414823f4cf84e3.tar.gz mpd-733962db2fb6cd3dc17aaf6630414823f4cf84e3.tar.xz mpd-733962db2fb6cd3dc17aaf6630414823f4cf84e3.zip |
decoder_api: return effective replay gain
Pay attention to the ReplayGain mode "auto" and the
replay_gain_missing_preamp parameter inside of decoder_replay_gain().
Diffstat (limited to '')
-rw-r--r-- | src/decoder_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c index a951b07cf..60d283052 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -419,7 +419,7 @@ decoder_replay_gain(struct decoder *decoder, if (REPLAY_GAIN_OFF != replay_gain_mode) { return_db = 20.0 * log10f( replay_gain_tuple_scale( - &replay_gain_info->tuples[replay_gain_mode], + &replay_gain_info->tuples[replay_gain_get_real_mode()], replay_gain_preamp)); } |