diff options
Diffstat (limited to '')
-rw-r--r-- | src/decoder_api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c index d60dbb8d2..25616e569 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -175,7 +175,7 @@ decoder_data(struct decoder *decoder, struct input_stream *is, void *_data, size_t length, float data_time, uint16_t bitRate, - ReplayGainInfo *replay_gain_info) + struct replay_gain_info *replay_gain_info) { static char *conv_buffer; static size_t conv_buffer_size; @@ -234,8 +234,8 @@ decoder_data(struct decoder *decoder, data, &decoder->conv_state); } - if (replay_gain_info != NULL && (replayGainState != REPLAYGAIN_OFF)) - doReplayGain(replay_gain_info, data, length, + if (replay_gain_info != NULL && (replay_gain_mode != REPLAY_GAIN_OFF)) + replay_gain_apply(replay_gain_info, data, length, &dc.out_audio_format); else if (normalizationEnabled) normalizeData(data, length, &dc.out_audio_format); |