Add way to use 32-bit VST3 when both are installed

Otherwise we would always use the 64-bit version and there would be no
way to use the 32-bit version, if version for some reason works better.

Relates to #80.
This commit is contained in:
Robbert van der Helm
2021-04-13 19:27:02 +02:00
parent f177b69aae
commit a297866d45
7 changed files with 67 additions and 38 deletions
+10
View File
@@ -142,6 +142,15 @@ class Configuration {
*/
bool vst3_no_scaling = false;
/**
* If a merged bundle contains both the 64-bit and the 32-bit versions of a
* Windows VST3 plugin (in the `x86_64-win` and the `x86-win` directories),
* then yabridge will use the 64-bit version by default. This option
* overrides that preference and thus allows you to use the 32-bit version
* if that's for whatever reason necessary.
*/
bool vst3_prefer_32bit = false;
/**
* The name of the plugin group that should be used for the plugin this
* configuration object was created for. If not set, then the plugin should
@@ -187,6 +196,7 @@ class Configuration {
s.ext(frame_rate, bitsery::ext::StdOptional(),
[](S& s, auto& v) { s.value4b(v); });
s.value1b(vst3_no_scaling);
s.value1b(vst3_prefer_32bit);
s.ext(group, bitsery::ext::StdOptional(),
[](S& s, auto& v) { s.text1b(v, 4096); });