Re: AU output buses
Re: AU output buses
- Subject: Re: AU output buses
- From: Robert Grant <email@hidden>
- Date: Tue, 11 Nov 2003 21:30:48 -0500
Hopefully this won't turn into another of my stream of consciousness
posts, but checking where I'm getting the error reveals that it's when
I set the render callback:
status = AudioUnitSetProperty( unit,
kAudioUnitProperty_SetRenderCallback,
kAudioUnitScope_Input,
bus,
&rcbs,
sizeof(rcbs) );
The bus is the bus number reported by the instrument (i.e. the output
bus) - I thought I'd read it this way but double checking the docs it
seems I'm mistaken. I now read it to mean the input bus of the pulling
AU. So in that case how do I specify which bus to use?
In the inputRefCon I guess?
Before anyone asks "why not just use the AUGraph wiring funcs?" I'm
going to try to wire in audio from non-au sources and want to handle
the various audio sources in a generic way. :-)
Robert.
On Nov 11, 2003, at 8:40 PM, Robert Grant wrote:
I'm confused about the output buses on AU instruments. I'm trying to
support routing output buses to different mixer channels but I'm
confused about what I'm getting returned by:
OSStatus status = AudioUnitGetProperty(m_unit,
kAudioUnitProperty_BusCount,
kAudioUnitScope_Output,
0,
&numbuses,
&size );
Zebra (for example) is returning 2 buses but if I try to connect bus 1
(the second bus) to the mixer I get kAudioUnitErr_InvalidElement. And
most AU instruments are returning more than one output bus.
What am I missing?
Thanks,
Robert.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.