mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-05 03:50:07 +00:00
The template constructor's parameter `const short channelLayoutList[numLayouts][2]`
decays to `const short (*)[2]` (pointer to array), which doesn't match any
AudioProcessor constructor.
Changed to `const short (&channelLayoutList)[numLayouts][2]` (reference to array)
to preserve the array type and match the AudioProcessor template constructor
that accepts `const short (&)[numLayouts][2]`.
This fixes the compilation error:
error: no matching constructor for initialization of 'AudioProcessor'
AudioPluginInstance (const short channelLayoutList[numLayouts][2])
: AudioProcessor (channelLayoutList) {}
|
||
|---|---|---|
| .. | ||
| juce_AudioPluginInstance.cpp | ||
| juce_AudioPluginInstance.h | ||
| juce_AudioProcessor.cpp | ||
| juce_AudioProcessor.h | ||
| juce_AudioProcessorGraph.cpp | ||
| juce_AudioProcessorGraph.h | ||
| juce_AudioProcessorListener.cpp | ||
| juce_AudioProcessorListener.h | ||
| juce_AudioProcessorParameter.cpp | ||
| juce_AudioProcessorParameter.h | ||
| juce_AudioProcessorParameterGroup.cpp | ||
| juce_AudioProcessorParameterGroup.h | ||
| juce_HostedAudioProcessorParameter.h | ||
| juce_PluginDescription.cpp | ||
| juce_PluginDescription.h | ||