Skip to content

Commit c01d4bd

Browse files
committed
add new nosimd property
1 parent 7292103 commit c01d4bd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Source/Heavy/DPFExporter.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class DPFExporter : public ExporterBase {
2020
Value exportTypeValue = Value(var(1));
2121
Value pluginTypeValue = Value(var(1));
2222

23+
Value disableSIMD = Value(var(0));
24+
2325
PropertiesPanelProperty* midiinProperty;
2426
PropertiesPanelProperty* midioutProperty;
2527

@@ -50,6 +52,10 @@ class DPFExporter : public ExporterBase {
5052
pluginFormats.add(new PropertiesPanel::BoolComponent("JACK", jackEnableValue, { "No", "Yes" }));
5153
jackEnableValue.addListener(this);
5254

55+
PropertiesArray pro_properties;
56+
57+
pro_properties.add(new PropertiesPanel::BoolComponent("Disable SIMD", disableSIMD, { "No", "Yes" }));
58+
5359
for (auto* property : properties) {
5460
property->setPreferredHeight(28);
5561
}
@@ -63,6 +69,7 @@ class DPFExporter : public ExporterBase {
6369

6470
panel.addSection("DPF", properties);
6571
panel.addSection("Plugin formats", pluginFormats);
72+
panel.addSection("Advanced", pro_properties);
6673
}
6774

6875
ValueTree getState() override
@@ -82,6 +89,7 @@ class DPFExporter : public ExporterBase {
8289
stateTree.setProperty("jackEnableValue", getValue<int>(jackEnableValue), nullptr);
8390
stateTree.setProperty("exportTypeValue", getValue<int>(exportTypeValue), nullptr);
8491
stateTree.setProperty("pluginTypeValue", getValue<int>(pluginTypeValue), nullptr);
92+
stateTree.setProperty("disableSIMD", getValue<int>(disableSIMD), nullptr);
8593

8694
return stateTree;
8795
}
@@ -103,6 +111,7 @@ class DPFExporter : public ExporterBase {
103111
jackEnableValue = tree.getProperty("jackEnableValue");
104112
exportTypeValue = tree.getProperty("exportTypeValue");
105113
pluginTypeValue = tree.getProperty("pluginTypeValue");
114+
disableSIMD = tree.getProperty("disableSIMD");
106115
}
107116

108117
void valueChanged(Value& v) override
@@ -149,6 +158,8 @@ class DPFExporter : public ExporterBase {
149158
bool clap = getValue<int>(clapEnableValue);
150159
bool jack = getValue<int>(jackEnableValue);
151160

161+
bool nosimd = getValue<int>(disableSIMD);
162+
152163
StringArray formats;
153164

154165
if (lv2) {
@@ -191,6 +202,7 @@ class DPFExporter : public ExporterBase {
191202
}
192203

193204
metaJson->setProperty("dpf", metaDPF);
205+
metaJson->setProperty("nosimd", nosimd);
194206

195207
args.add("-m" + createMetaJson(metaJson));
196208

0 commit comments

Comments
 (0)