From cf6ca1b0ba720f5d9317a9fe158317db7282fb88 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 14 Oct 2021 13:38:23 +0200 Subject: [PATCH] player/CrossFade: use C++11 initializers --- src/player/CrossFade.hxx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/player/CrossFade.hxx b/src/player/CrossFade.hxx index b4a45bf77..8ab6ad6ef 100644 --- a/src/player/CrossFade.hxx +++ b/src/player/CrossFade.hxx @@ -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.