Browse Source

Fixed a couple of warnings in juce_VSTPluginFormat.cpp

tags/2021-05-28
ed 7 years ago
parent
commit
be8395478f
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp

+ 9
- 5
modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp View File

@@ -1064,7 +1064,7 @@ struct VSTPluginInstance : public AudioPluginInstance,
valueType)); valueType));
} }
vstSupportsBypass = pluginCanDo ("bypass");
vstSupportsBypass = (pluginCanDo ("bypass") > 0);
setRateAndBufferSizeDetails (sampleRateToUse, blockSizeToUse); setRateAndBufferSizeDetails (sampleRateToUse, blockSizeToUse);
} }
@@ -1953,7 +1953,13 @@ private:
//============================================================================== //==============================================================================
struct VST2BypassParameter : Parameter struct VST2BypassParameter : Parameter
{ {
VST2BypassParameter (VSTPluginInstance& effectToUse) : parent (effectToUse) {}
VST2BypassParameter (VSTPluginInstance& effectToUse)
: parent (effectToUse),
onStrings (TRANS("on"), TRANS("yes"), TRANS("true")),
offStrings (TRANS("off"), TRANS("no"), TRANS("false")),
values (TRANS("Off"), TRANS("On"))
{
}
void setValue (float newValue) override void setValue (float newValue) override
{ {
@@ -1991,9 +1997,7 @@ private:
VSTPluginInstance& parent; VSTPluginInstance& parent;
bool currentValue = false; bool currentValue = false;
StringArray onStrings { TRANS("on"), TRANS("yes"), TRANS("true") };
StringArray offStrings { TRANS("off"), TRANS("no"), TRANS("false") };
StringArray values { TRANS("Off"), TRANS("On") };
StringArray onStrings, offStrings, values;
}; };
//============================================================================== //==============================================================================


Loading…
Cancel
Save