diff --git a/Source/Heavy/DPFExporter.h b/Source/Heavy/DPFExporter.h index dcd905f4c..1731e61d1 100644 --- a/Source/Heavy/DPFExporter.h +++ b/Source/Heavy/DPFExporter.h @@ -21,6 +21,8 @@ class DPFExporter final : public ExporterBase { Value exportTypeValue = Value(var(1)); Value pluginTypeValue = Value(var(1)); + Value disableSIMD = Value(var(0)); + PropertiesPanelProperty* midiinProperty; PropertiesPanelProperty* midioutProperty; @@ -51,6 +53,10 @@ class DPFExporter final : 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); } @@ -64,6 +70,7 @@ class DPFExporter final : public ExporterBase { panel.addSection("DPF", properties); panel.addSection("Plugin formats", pluginFormats); + panel.addSection("Advanced", pro_properties); } ValueTree getState() override @@ -83,6 +90,7 @@ class DPFExporter final : 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; } @@ -104,6 +112,7 @@ class DPFExporter final : public ExporterBase { jackEnableValue = tree.getProperty("jackEnableValue"); exportTypeValue = tree.getProperty("exportTypeValue"); pluginTypeValue = tree.getProperty("pluginTypeValue"); + disableSIMD = tree.getProperty("disableSIMD"); } void valueChanged(Value& v) override @@ -150,6 +159,8 @@ class DPFExporter final : public ExporterBase { bool clap = getValue(clapEnableValue); bool jack = getValue(jackEnableValue); + bool nosimd = getValue(disableSIMD); + StringArray formats; if (lv2) { @@ -192,6 +203,7 @@ class DPFExporter final : public ExporterBase { } metaJson->setProperty("dpf", metaDPF); + metaJson->setProperty("nosimd", nosimd); args.add("-m" + createMetaJson(metaJson));