Re: Multi-input bus (sidechain) configuration
Re: Multi-input bus (sidechain) configuration
- Subject: Re: Multi-input bus (sidechain) configuration
- From: "Sophia Poirier [dfx]" <email@hidden>
- Date: Wed, 22 Oct 2008 18:24:14 -0400
For SupportedNumChannels, you're not wanting to give a total sum of
channel counts across busses, but a per-bus description. So { 2, 2 }
would be the correct pair to supply.
Also, I'm not sure how you're using the multiple busses, but you may
want to give them names as well to identify them to the user, like for
example:
SafeGetElement(kAudioUnitScope_Input, 0)->SetName(CFSTR("main input"));
SafeGetElement(kAudioUnitScope_Input, 1)->SetName(CFSTR("sidechain"));
or whatever makes sense for your plugin. Live is an example of a host
that will present this information to the user in its routing
interface. (This is not the cause of your error, but just figured I'd
mention it as a good idea.)
Sophia
On Oct 21, 2008, at 3:03 PM, steve wrote:
I expect there will be a collective groan when posting this, but after
several hours of searching the archives and docs this is my last
resort.
I'm trying to create a AU plug-in with a fixed configuration of 2x
stereo bus inputs, and 1x stereo bus output by modifying the
FilterDemo
example plugin from the SDK (derived from AUEffectBase), with the
following modifications:
1. I've added creation of an additional input bus in the constructor
thus:
AUBase::CreateElements();
SetBusCount(kAudioUnitScope_Input, 2);
2. I've overridden SupportedNumChannels to return a single { 4, 2 }
pair.
3. I've overridden Initialize() so it doesn't simply try to match the
above pair to the Input(0) and Output(0) channel counts.
I'm clearly missing something fundamental though - though the buses
seem
to be correctly reported with sensible audio stream formats, auval
fails
with the following output:
VERIFYING DEFAULT SCOPE FORMATS:
Input Scope Bus Configuration:
Default Bus Count:2
Format Bus 0: AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm'
(0x00000029) 32-bit little-endian float, deinterleaved
Format Bus 1: AudioStreamBasicDescription: 2 ch, 44100 Hz, 'lpcm'
(0x00000029) 32-bit little-endian float, deinterleaved
Output Scope Bus Configuration:
Default Bus Count:1
Default Format: AudioStreamBasicDescription: 2 ch, 44100 Hz,
'lpcm' (0x00000029) 32-bit little-endian float, deinterleaved
ERROR: Default Format of unit does not match reported Channel handling
capabilities
* * FAIL
Can anyone give me any pointers in the direction of my (I suspect)
obvious error?
Thanks,
Steve.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden