From 563a89b03db65cdf742fe028504a3c8d468044b3 Mon Sep 17 00:00:00 2001 From: Bailey Pumfleet Date: Mon, 2 Nov 2026 11:36:46 -0600 Subject: [PATCH] Fix the Leveler and Dialogue release builds - leveler: voicing.hpp used size_t without ; the release builds on Linux (clang 21, no precompiled JUCE headers in front of it) failed - dialogue: its LV2 tag is "utility"; packaging/patch_lv2.py has no "util", which failed the Windows release build (the test workflow doesn't build LV2 there) Co-Authored-By: Claude Opus 5.5 --- products/dialogue/CMakeLists.txt | 2 +- products/leveler/source/dsp/voicing.hpp | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/products/dialogue/CMakeLists.txt b/products/dialogue/CMakeLists.txt index 3e916473..f1f0769e 100644 --- a/products/dialogue/CMakeLists.txt +++ b/products/dialogue/CMakeLists.txt @@ -28,7 +28,7 @@ altvane_add_plugin(AltvaneDialogue AU_MAIN_TYPE kAudioUnitType_Effect VST3_CATEGORIES Fx Restoration AAX_CATEGORY AAX_ePlugInCategory_NoiseReduction - LV2_TAGS util + LV2_TAGS utility LINK_LIBRARIES altvane_dialogue_models pffft ${dialogue_blas} ) diff --git a/products/leveler/source/dsp/voicing.hpp b/products/leveler/source/dsp/voicing.hpp index 97dba7da..d3612cd0 100644 --- a/products/leveler/source/dsp/voicing.hpp +++ b/products/leveler/source/dsp/voicing.hpp @@ -9,6 +9,7 @@ #pragma once #include +#include #include #include "filters.hpp" @@ -43,17 +44,17 @@ namespace altvane::leveler::dsp { Result analyse(); private: - static constexpr size_t kRingSize = 1024; - static constexpr size_t kEnergyHops = 4; + static constexpr std::size_t kRingSize = 1024; + static constexpr std::size_t kEnergyHops = 4; Biquad anti_alias_a_, anti_alias_b_, high_; bool has_high_band_{true}; int decimation_{6}, phase_{0}; - size_t write_{0}, window_{240}, min_lag_{10}, max_lag_{133}; + std::size_t write_{0}, window_{240}, min_lag_{10}, max_lag_{133}; std::array ring_{}; std::vector frame_, diff_; std::array high_energy_{}, total_energy_{}; - size_t energy_slot_{0}; + std::size_t energy_slot_{0}; double hop_high_{0.0}, hop_total_{0.0}; }; }