Re: AUMatrixMixer questions
Re: AUMatrixMixer questions
- Subject: Re: AUMatrixMixer questions
- From: james mccartney <email@hidden>
- Date: Mon, 21 Apr 2008 10:13:33 -0700
On Apr 20, 2008, at 2:47 PM, Marco Yuen wrote:
Now my questions are how does the matrix mixer work? how does one do
the channel mapping from AUMatrixMixer to DefaultOuput or from Synth
node to AUMatrixMixer?
Also, how do I map only one output channel to an input bus.
The matrix mixer allows you to connect any number of input and ouput
elements with any number of channels each. You need to make sure you
set the stream formats of the inputs and outputs so that the channel
numbers are correct. Each input and output channel is numbered
sequentially across all elements. So if you were to connect one stereo
inputs, one mono input, and another stereo input, the channels in the
mixer would be numbered as follows:
stereo: 0 1
mono: 2
stereo: 3 4
Outputs are numbered in a similar fashion.
The channel numbers are what you use to set gains in the matrix.
The matrix has 4 gain controls that can affect any particular route
from input to output:
master gain (global scope) - affects the gain of all outputs
input channel gain (input scope) - affects the gain of a particular
input channel
output channel gain (output scope) - affects the gain of a particular
output channel
crosspoint gain (global scope) - controls the gain of a single input
channel going to a single output channel. You make connections from
inputs to outputs by setting crosspoint gains to nonzero values.
When setting crosspoint gain parameters, the element number is used
differently from other audio units.
Crosspoints are set using an element number that is constructed from
both the input and the output channel numbers as follows:
element_number = (input_channel << 16) | output_channel
Master gain has element number 0xFFFFFFFF.
Is there any sample code?
/Developer/Examples/CoreAudio/Services/MatrixMixerTest
_______________________________________________
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