player/CrossFade: use C++11 initializers

This commit is contained in:
Max Kellermann 2021-10-14 13:38:23 +02:00
parent 37bd6de658
commit cf6ca1b0ba

View File

@ -29,22 +29,15 @@ struct CrossFadeSettings {
/**
* The configured cross fade duration [s].
*/
FloatDuration duration;
FloatDuration duration{0};
float mixramp_db;
float mixramp_db{0};
/**
* The configured MixRapm delay [s]. A non-positive value
* disables MixRamp.
*/
FloatDuration mixramp_delay;
CrossFadeSettings()
:duration(0),
mixramp_db(0),
mixramp_delay(-1)
{}
FloatDuration mixramp_delay{-1};
/**
* Calculate how many music pipe chunks should be used for crossfading.