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().
This commit is contained in:
parent
f824ecdfa1
commit
733962db2f
@ -419,7 +419,7 @@ decoder_replay_gain(struct decoder *decoder,
|
|||||||
if (REPLAY_GAIN_OFF != replay_gain_mode) {
|
if (REPLAY_GAIN_OFF != replay_gain_mode) {
|
||||||
return_db = 20.0 * log10f(
|
return_db = 20.0 * log10f(
|
||||||
replay_gain_tuple_scale(
|
replay_gain_tuple_scale(
|
||||||
&replay_gain_info->tuples[replay_gain_mode],
|
&replay_gain_info->tuples[replay_gain_get_real_mode()],
|
||||||
replay_gain_preamp));
|
replay_gain_preamp));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user