1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-02 03:20:06 +00:00

Fix StandaloneFilterWindow compile error

This commit is contained in:
hogliux 2016-03-03 17:15:46 +00:00
parent 01ccab4c89
commit bbf716af9c

View file

@ -79,9 +79,17 @@ public:
jassert (processor != nullptr); // Your createPluginFilter() function must return a valid object!
AudioProcessor::setTypeOfNextNewPlugin (AudioProcessor::wrapperType_Undefined);
processor->setPlayConfigDetails (JucePlugin_MaxNumInputChannels,
JucePlugin_MaxNumOutputChannels,
44100, 512);
// try to disable sidechain and aux buses
const int numInBuses = processor->busArrangement.inputBuses.size();
const int numOutBuses = processor->busArrangement.inputBuses.size();
for (int busIdx = 1; busIdx < numInBuses; ++busIdx)
processor->setPreferredBusArrangement (true, busIdx, AudioChannelSet::disabled());
for (int busIdx = 1; busIdx < numOutBuses; ++busIdx)
processor->setPreferredBusArrangement (false, busIdx, AudioChannelSet::disabled());
processor->setRateAndBufferSizeDetails(44100, 512);
}
virtual void deletePlugin()