From 490286b67801267c00b90df7436212b57c0ca026 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 4 Jun 2023 06:09:32 +0200 Subject: [PATCH] Update submodules, fix leaks, adjust standalone behaviour Signed-off-by: falkTX --- carla | 2 +- dpf | 2 +- plugins/Common/IldaeilUI.cpp | 11 ++++++++--- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/carla b/carla index e924e19..aafc99e 160000 --- a/carla +++ b/carla @@ -1 +1 @@ -Subproject commit e924e19f25367d5009e0e068b59d9f46794ac41b +Subproject commit aafc99e864782e16fd0596b258396e422a83614c diff --git a/dpf b/dpf index eba5849..e288f16 160000 --- a/dpf +++ b/dpf @@ -1 +1 @@ -Subproject commit eba584917cb566cbbdf626cc8736c3d13b65a2e9 +Subproject commit e288f163bbf3af6ae24e9df6cdd23e755ff1aaf5 diff --git a/plugins/Common/IldaeilUI.cpp b/plugins/Common/IldaeilUI.cpp index bef7540..9485df7 100644 --- a/plugins/Common/IldaeilUI.cpp +++ b/plugins/Common/IldaeilUI.cpp @@ -93,6 +93,7 @@ class IldaeilUI : public UI, boolean(false), bvalue(false), log(false), + readonly(false), min(0.0f), max(1.0f) {} ~Parameter() @@ -130,6 +131,8 @@ class IldaeilUI : public UI, std::free(title); delete[] parameters; delete[] values; + delete[] presets; + delete[] presetStrings; } }; @@ -433,7 +436,7 @@ public: else updatePluginGenericUI(handle); - #if !ILDAEIL_STANDALONE + #ifndef DISTRHO_OS_WASM const double scaleFactor = getScaleFactor(); fNextSize = Size(kGenericWidth * scaleFactor, (kGenericHeight + ImGui::GetStyle().WindowPadding.y) * scaleFactor); @@ -449,6 +452,8 @@ public: title += info->maker; ui->title = title.getAndReleaseBuffer(); + fPluginHasOutputParameters = false; + const uint32_t parameterCount = ui->parameterCount = carla_get_parameter_count(handle, fPluginId); // make count of valid parameters @@ -1116,7 +1121,7 @@ protected: { fIdleState = kIdleHidePluginUI; fDrawingState = kDrawingPluginList; - #if !ILDAEIL_STANDALONE + #ifndef DISTRHO_OS_WASM fNextSize = Size(kInitialWidth * scaleFactor, kInitialHeight * scaleFactor); #endif } @@ -1184,7 +1189,7 @@ protected: if (supportsMIDI() && !isMIDIEnabled() && ImGui::Button("Enable MIDI")) requestMIDI(); - if (supportsBufferSizeChanges()) + if (fDrawingState != kDrawingPluginEmbedUI && supportsBufferSizeChanges()) { ImGui::SameLine(); ImGui::Spacing();