1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

DSPModulePluginDemo: Fix crash in Live due to selecting unsupported bus layout

This commit is contained in:
reuk 2021-06-21 12:40:30 +01:00
parent 22d935ad3e
commit f3c65c4cb3
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11

View file

@ -219,6 +219,13 @@ public:
void changeProgramName (int, const String&) override {}
//==============================================================================
bool isBusesLayoutSupported (const BusesLayout& layout) const override
{
return layout == BusesLayout { { AudioChannelSet::stereo() },
{ AudioChannelSet::stereo() } };
}
//==============================================================================
void getStateInformation (MemoryBlock& destData) override
{