Another matrix mixer question
Another matrix mixer question
- Subject: Another matrix mixer question
- From: Craig Hopson <email@hidden>
- Date: Tue, 30 Aug 2005 11:58:41 -0600
I'm having some problems with the matrix mixer - or better said, my
use of the mixer... In short, I get only the output from the input
on bus #0.
The graph setup is simple: a matrix mixer + default output. The
input generators are custom code (but not wrapped as audio units)
that read a file into a buffer and allow playing of any portion of
the sample, forwards or backwards.
I...
create a graph
create the nodes (mixer + output)
connect the nodes
open the graph
get node info for each above
set the mixer's bus count to two on input, one on output
connect my generators via _SetRenderCallback, one on each bus
set the input stream formats for the mixer
set the output stream format for the mixer
initialize the graph
enable the inputs
set the volume params for:
master volume - param_Volume, scope_Global, 0xFFFFFFFF,
1.0, 0
matrix volumes - param_Volume, scope_Global, 0, 1.0, 0
param_Volume, scope_Global,
1, 1.0, 0
input volumes - param_Volume, scope_Input, 0, 1.0, 0
param_Volume, scope_Input,
1, 1.0, 0
output volumes - param_Volume, scope_Output, 0, 1.0, 0
param_Volume, scope_Output,
1, 1.0, 0
start the graph
Data is being pulled on both input busses. And, if I switch the
inputs and rerun, the output sound is switched accordingly. However,
I cannot find any way to get the input on bus #1 to be heard.
One clue? I did have a problem with stereo (lack thereof); I was
only getting one channel of the first input, until I set the global
volume for 0 & 1 to 1.0. I had assumed that these were the bus
volumes, not the channel volumes....
What am I missing??
Thanks. BTW, this list has been a tremendous help over the past
couple of months.
-Craig
_______________________________________________
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