Allow hiding the DAW name for VST2 plugins

This can be useful when plugins have (broken) host-specific behaviour
that you want to avoid. I'll later add a list of host/plugin
combinations where this may be useful to the readme.
This commit is contained in:
Robbert van der Helm
2021-04-27 18:41:24 +02:00
parent 38abdbee50
commit 3a73fb9689
7 changed files with 93 additions and 11 deletions
+10
View File
@@ -138,6 +138,15 @@ class Configuration {
*/
std::optional<float> frame_rate;
/**
* When this option is enabled, we'll report some random other string
* instead of the actual name of the host when the plugin queries it. This
* can sometimes be useful when a plugin has undesirable host-specific
* behaviour. See the readme for some examples of where this might be
* useful.
*/
bool hide_daw = false;
/**
* Disable `IPlugViewContentScaleSupport::setContentScaleFactor()`. Wine
* does not properly implement fractional DPI scaling, so without this
@@ -198,6 +207,7 @@ class Configuration {
s.value1b(editor_xembed);
s.ext(frame_rate, bitsery::ext::StdOptional(),
[](S& s, auto& v) { s.value4b(v); });
s.value1b(hide_daw);
s.value1b(vst3_no_scaling);
s.value1b(vst3_prefer_32bit);