Lost: Second audio input channel. Cash reward. No questions asked.
Here’s the story:
I’m setting up a simple metering plug-in, based off of the demo code that came with juce 1.45.
In jucePlugInCharacteristics.h, I have
JucePlugin_MaxNumInputChannels set to 2,
JucePlugin_MaxNumOutputChannels set to 2, and…
JucePlugin_PreferredChannelConfigurations set to { 1, 1 }, { 2, 2 }
And the plug-in code itself plays nicely with any combination of data up to those numbers of channels. At least… it looks like it should.
When I run this plug in AU Lab, I only see one channel being outputted (but two valid channels going in, of course).
Calls to getNumInputChannels() and getNumOutputChannels() inside of
DemoJuceFilter::prepareToPlay() both return 2, but the second of the two tracks found in the AudioSampleBuffer parameter in processBlock() comes through as zero. Any ideas where this second channel’s data has wandered off to?