diff --git a/Source/PluginProcessor.cpp b/Source/PluginProcessor.cpp index 977795a3..fe13fda5 100644 --- a/Source/PluginProcessor.cpp +++ b/Source/PluginProcessor.cpp @@ -63,7 +63,8 @@ #endif //============================================================================== -DexedAudioProcessor::DexedAudioProcessor() { +DexedAudioProcessor::DexedAudioProcessor() + : AudioProcessor(BusesProperties().withOutput("output", AudioChannelSet::stereo(), true)) { #ifdef DEBUG // avoid creating the log file if it is in standalone mode @@ -723,6 +724,11 @@ bool DexedAudioProcessor::isOutputChannelStereoPair (int index) const { return true; } +bool DexedAudioProcessor::isBusesLayoutSupported(const BusesLayout &layouts) const { + return layouts.getMainOutputChannelSet() == AudioChannelSet::mono() + || layouts.getMainOutputChannelSet() == AudioChannelSet::stereo(); +} + bool DexedAudioProcessor::acceptsMidi() const { return true; } diff --git a/Source/PluginProcessor.h b/Source/PluginProcessor.h index 6bbbebbf..83de86a4 100644 --- a/Source/PluginProcessor.h +++ b/Source/PluginProcessor.h @@ -213,6 +213,7 @@ public : const String getOutputChannelName (int channelIndex) const; bool isInputChannelStereoPair (int index) const; bool isOutputChannelStereoPair (int index) const; + bool isBusesLayoutSupported (const BusesLayout& layouts) const; bool acceptsMidi() const; bool producesMidi() const;