From 7821cdac21ff9804b4f96efdbf24fe6d5cb53d91 Mon Sep 17 00:00:00 2001 From: Pierre Alexandre Tremblay Date: Mon, 18 Aug 2025 11:05:06 +0200 Subject: [PATCH] fix crash-inducing min requirement for winsize --- include/flucoma/clients/rt/LoudnessClient.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/flucoma/clients/rt/LoudnessClient.hpp b/include/flucoma/clients/rt/LoudnessClient.hpp index 9df5a725a..2123615f7 100644 --- a/include/flucoma/clients/rt/LoudnessClient.hpp +++ b/include/flucoma/clients/rt/LoudnessClient.hpp @@ -37,7 +37,8 @@ constexpr auto LoudnessParams = defineParameters( ChoicesParam("select","Selection of Outputs","loudness","peak"), EnumParam("kWeighting", "Apply K-Weighting", 1, "Off", "On"), EnumParam("truePeak", "Compute True Peak", 1, "Off", "On"), - LongParam("windowSize", "Window Size", 1024, UpperLimit()), + LongParam("windowSize", "Window Size", 1024, Min(1), + UpperLimit()), LongParam("hopSize", "Hop Size", 512, Min(1)), LongParam>("maxWindowSize", "Max Window Size", 16384, Min(4), PowerOfTwo{}, Max(32768)) // 17640 next power of two