Re: Routing Sound to MultiChannel Device
Re: Routing Sound to MultiChannel Device
- Subject: Re: Routing Sound to MultiChannel Device
- From: Doug Wyatt <email@hidden>
- Date: Mon, 13 Mar 2006 14:13:25 -0800
Hi Mark,
Bill's got it backwards.
The channel map array of SInt32's must be the same size as the number
of device channels. Each array element says which of your source
channels [0..n-1] is routed to that output, or -1 if none. This
permits splitting a source channel to multiple device channels, but
does not allow more than one source channel per device channel (which
would require mixing).
This is implemented by an AudioConverter inside the output unit, and
directly corresponds to that converter's kAudioConverterChannelMap
property.
Doug
On Mar 13, 2006, at 12:09, William Stewart wrote:
The property you need to look at is:
kAudioOutputUnitProperty_ChannelMap
In general, you should provide a channel map that is the same size
as the number of source channels (your output unit's input) you are
providing to the output unit. Then, for each of these (ie. if you
have 2 input channels, then you have SInt32 chans[2]) you describe
which channel of the device you want that source channel to go too.
You must make sure that each output channel you specify is unique -
the output unit does NOT do mixing.
Bill
On 13/03/2006, at 9:16 AM, Mark Coniglio wrote:
Hi,
Is it possible to tell the DefaultOutputUnit to route it's sound
output to any channel (or pair of channels) on the currently
connected multi-channel sound output device?
Or can I only use an AudioDeviceOutput output to route the sound
in this way?
Could someone point me to sample code of how to route sound to the
various outputs on a multi-cahnnel device?
Many Thanks,
Mark
--
Doug Wyatt
Core Audio, Apple
_______________________________________________
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