Browse Source

VST3 Host: Tidy up input/output loops

v7.0.9
reuk 2 years ago
parent
commit
2d0f21fb4a
No known key found for this signature in database GPG Key ID: FCB43929F012EE5C
1 changed files with 3 additions and 6 deletions
  1. +3
    -6
      modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp

+ 3
- 6
modules/juce_audio_processors/format_types/juce_VST3PluginFormat.cpp View File

@@ -2761,9 +2761,8 @@ public:
// not much we can do to check the layout while the audio processor is running
// Let's at least check if it is a VST3 compatible layout
for (int dir = 0; dir < 2; ++dir)
for (const auto isInput : { true, false })
{
bool isInput = (dir == 0);
auto n = getBusCount (isInput);
for (int i = 0; i < n; ++i)
@@ -2776,9 +2775,8 @@ public:
bool syncBusLayouts (const BusesLayout& layouts) const
{
for (int dir = 0; dir < 2; ++dir)
for (const auto isInput : { true, false })
{
bool isInput = (dir == 0);
auto n = getBusCount (isInput);
const Vst::BusDirection vstDir = (isInput ? Vst::kInput : Vst::kOutput);
@@ -3437,9 +3435,8 @@ private:
VSTComSmartPtr<Vst::IAudioProcessor> processor;
processor.loadFrom (component.get());
for (int dirIdx = 0; dirIdx < 2; ++dirIdx)
for (const auto isInput : { true, false })
{
const bool isInput = (dirIdx == 0);
const Vst::BusDirection dir = (isInput ? Vst::kInput : Vst::kOutput);
const int numBuses = component->getBusCount (Vst::kAudio, dir);


Loading…
Cancel
Save