When I compile the AU plugin using JUCE, I encounter the following error during debugging: from AU (0x8052d160): aufx/Mnkj/Manu, render err: -10867
And the compiled AU plugin will mute the track when hung on it
The same code, I compiled it as VST3, and there were no issues with using or debugging it
There are also such errors:
Invalid key (<NSAffineTransform: 0x600000c0d080>) used in dictionary of type `NSDictionary<NSString *, id> *.
But I want to compile VST3 with the same code, there is no problem, only AU cannot. Why? AU can compile but the error mentioned above occurs
There’s not enough information here to work out what the problem might be. The error code corresponds to kAudioUnitErr_Uninitialized, which indicates that the AU was uninitialised at a point where it was expected to be initialised. Without knowing the call stack at the point of the error, it’s difficult to say why this might be happening.
Have you tried multiple AU hosts? Do you get the same result in all hosts? Which host causes the issue that you reported?
Have you tried any of the JUCE example AU plugins? Do those work as expected? If they don’t, then we may be able to reproduce and debug the problem. Otherwise, if the JUCE examples work as expected, this might indicate that the issue is due to a problem in your code.
I have created a new plugin project, only changing the channel count to 7.1.6. When compiling AU, I will encounter the same error
#ifndef JucePlugin_PreferredChannelConfigurations
bool _716AudioProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const
{
#if JucePlugin_IsMidiEffect
juce::ignoreUnused (layouts);
return true;
#else
// This is the place where you check if the layout is supported.
// In this template code we only support mono or stereo.
// Some plugin hosts, such as certain GarageBand versions, will only
// load plugins that support stereo bus layouts.
if (layouts.getMainOutputChannelSet() != juce::AudioChannelSet::create7point1point6()
&& layouts.getMainOutputChannelSet() != juce::AudioChannelSet::create7point1point6())
return false;
// This checks if the input layout matches the output layout
#if ! JucePlugin_IsSynth
if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet())
return false;
#endif
return true;
#endif
}
#endif
/*
==============================================================================
This file contains the basic framework code for a JUCE plugin processor.
==============================================================================
*/
#include "PluginProcessor.h"
#include "PluginEditor.h"
//==============================================================================
_716AudioProcessor::_716AudioProcessor()
#ifndef JucePlugin_PreferredChannelConfigurations
: AudioProcessor (BusesProperties()
#if ! JucePlugin_IsMidiEffect
#if ! JucePlugin_IsSynth
.withInput ("Input", juce::AudioChannelSet::create7point1point6(), true)
#endif
.withOutput ("Output", juce::AudioChannelSet::create7point1point6(), true)
#endif
)
#endif
{
}
This error will result in: compilation is normal, AU plugins can also be read normally, but when on the track, it will mute the track.
I tested other multi-channel channels and it seems that this only happens in the case of 7.1.6
I just realized again that 7.1.6 and 9.1.4 don’t work either
