projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68cbbe8
)
VST set defaults only once (initially)
author
Robin Gareus
<robin@gareus.org>
Sun, 13 Nov 2016 17:48:33 +0000
(18:48 +0100)
committer
Robin Gareus
<robin@gareus.org>
Sun, 13 Nov 2016 17:48:33 +0000
(18:48 +0100)
Opening the generic plugin UI or re-opening the GUI will call
get_parameter_descriptor() again, and replace the defaults with
current values.
libs/ardour/vst_plugin.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/vst_plugin.cc
b/libs/ardour/vst_plugin.cc
index cf083e87f1f7c834698448e90d3369ce3a44d4db..8214d0be812a1c7f1a9d95371f205695db36058d 100644
(file)
--- a/
libs/ardour/vst_plugin.cc
+++ b/
libs/ardour/vst_plugin.cc
@@
-344,7
+344,9
@@
VSTPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& desc)
}
desc.normal = get_parameter (which);
- _parameter_defaults[which] = desc.normal;
+ if (_parameter_defaults.find (which) == _parameter_defaults.end ()) {
+ _parameter_defaults[which] = desc.normal;
+ }
return 0;
}