ReplayGainInfo: add method Get()

This commit is contained in:
Max Kellermann
2016-11-24 16:50:55 +01:00
parent 7ef31f84a7
commit 09c3cc58e4
3 changed files with 6 additions and 2 deletions

View File

@@ -597,7 +597,7 @@ DecoderBridge::SubmitReplayGain(const ReplayGainInfo *new_replay_gain_info)
if (rgm != REPLAY_GAIN_ALBUM)
rgm = REPLAY_GAIN_TRACK;
const auto &tuple = new_replay_gain_info->tuples[rgm];
const auto &tuple = new_replay_gain_info->Get(rgm);
const auto scale =
tuple.CalculateScale(replay_gain_preamp,
replay_gain_missing_preamp,