DecoderControl: move code/attributes to new class MixRampInfo

This commit is contained in:
Max Kellermann
2013-10-26 14:19:34 +02:00
parent 2098b94b47
commit 85ae7e9c9a
13 changed files with 124 additions and 95 deletions

View File

@@ -541,11 +541,9 @@ decoder_replay_gain(Decoder &decoder,
}
void
decoder_mixramp(Decoder &decoder,
char *mixramp_start, char *mixramp_end)
decoder_mixramp(Decoder &decoder, MixRampInfo &&mix_ramp)
{
decoder_control &dc = decoder.dc;
dc.MixRampStart(mixramp_start);
dc.MixRampEnd(mixramp_end);
dc.SetMixRamp(std::move(mix_ramp));
}