From c01d4bda8908e1a012fc0b1352d079c197495ac3 Mon Sep 17 00:00:00 2001 From: dreamer Date: Fri, 13 Dec 2024 12:56:37 +0100 Subject: [PATCH] add new nosimd property --- Source/Heavy/DPFExporter.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/Heavy/DPFExporter.h b/Source/Heavy/DPFExporter.h index 721cb5589..0f4df4f9a 100644 --- a/Source/Heavy/DPFExporter.h +++ b/Source/Heavy/DPFExporter.h @@ -20,6 +20,8 @@ class DPFExporter : public ExporterBase { Value exportTypeValue = Value(var(1)); Value pluginTypeValue = Value(var(1)); + Value disableSIMD = Value(var(0)); + PropertiesPanelProperty* midiinProperty; PropertiesPanelProperty* midioutProperty; @@ -50,6 +52,10 @@ class DPFExporter : public ExporterBase { pluginFormats.add(new PropertiesPanel::BoolComponent("JACK", jackEnableValue, { "No", "Yes" })); jackEnableValue.addListener(this); + PropertiesArray pro_properties; + + pro_properties.add(new PropertiesPanel::BoolComponent("Disable SIMD", disableSIMD, { "No", "Yes" })); + for (auto* property : properties) { property->setPreferredHeight(28); } @@ -63,6 +69,7 @@ class DPFExporter : public ExporterBase { panel.addSection("DPF", properties); panel.addSection("Plugin formats", pluginFormats); + panel.addSection("Advanced", pro_properties); } ValueTree getState() override @@ -82,6 +89,7 @@ class DPFExporter : public ExporterBase { stateTree.setProperty("jackEnableValue", getValue(jackEnableValue), nullptr); stateTree.setProperty("exportTypeValue", getValue(exportTypeValue), nullptr); stateTree.setProperty("pluginTypeValue", getValue(pluginTypeValue), nullptr); + stateTree.setProperty("disableSIMD", getValue(disableSIMD), nullptr); return stateTree; } @@ -103,6 +111,7 @@ class DPFExporter : public ExporterBase { jackEnableValue = tree.getProperty("jackEnableValue"); exportTypeValue = tree.getProperty("exportTypeValue"); pluginTypeValue = tree.getProperty("pluginTypeValue"); + disableSIMD = tree.getProperty("disableSIMD"); } void valueChanged(Value& v) override @@ -149,6 +158,8 @@ class DPFExporter : public ExporterBase { bool clap = getValue(clapEnableValue); bool jack = getValue(jackEnableValue); + bool nosimd = getValue(disableSIMD); + StringArray formats; if (lv2) { @@ -191,6 +202,7 @@ class DPFExporter : public ExporterBase { } metaJson->setProperty("dpf", metaDPF); + metaJson->setProperty("nosimd", nosimd); args.add("-m" + createMetaJson(metaJson));