mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VST3 Host: Tidy up input/output loops
This commit is contained in:
parent
364976b179
commit
2d0f21fb4a
1 changed files with 3 additions and 6 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue