We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03700cb commit 6bacb0aCopy full SHA for 6bacb0a
1 file changed
distrho/src/DistrhoPluginVST3.cpp
@@ -846,7 +846,7 @@ class PluginVst3
846
847
if (mediaType == V3_AUDIO)
848
{
849
- #if DISTRHO_PLUGIN_NUM_INPUTS > 0 || DISTRHO_PLUGIN_NUM_OUTPUTS > 0
+ #if DISTRHO_PLUGIN_NUM_INPUTS+DISTRHO_PLUGIN_NUM_OUTPUTS > 0
850
const uint32_t busId = static_cast<uint32_t>(busIndex);
851
852
if (busDirection == V3_INPUT)
@@ -877,6 +877,11 @@ class PluginVst3
877
}
878
879
return V3_OK;
880
+
881
+ #if DISTRHO_PLUGIN_NUM_INPUTS+DISTRHO_PLUGIN_NUM_OUTPUTS == 0
882
+ // unused
883
+ (void)state;
884
+ #endif
885
886
887
v3_result setActive(const bool active)
0 commit comments