I'm working on an ios app which has an audio unit mixer with two inputs. Almost everything is working thanks to Chris Adamson's book "Learning Core Audio" which I can't recommend highly enough.
My problem is, I need to separately control the relative volume of the two inputs before they are mixed. I can easily control the total output volume after mixing.
I'm mixing pre-recorded audio and processed live feedback audio from the microphone.
On page 189 Chris describes a mixer with two inputs, which is almost exactly the same situation. He mentions it's possible to control the volume property of the two input busses. However that's not supported by the mixer since I'm on iOS I'm using this type of mixer:
kAudioUnitSubType_MultiChannelMixer;
On MacOS X the "matrix" mixer can adjust two inputs independently:
kAudioUnitSubType_MatrixMixer
But according to the headers and Apple's docs, that doesn't work on iOS.
I could add a gain mixer into the chain just before the two channel mixer, but that would slow things down and add complication. Isn't there an easier way to do this with core audio built in mixers?
Thanks in advance...
-Dean
|| ||| || ||| || ||| || ||| || ||| || ||| || ||| || ||| || ||| || |||
RPS, Inc. contact: <
http://www.reyburn.com/contact.html>
Dean Reyburn, RPT
2695 Indian Lakes Road web page: <
http://www.reyburn.com/>
Cedar Springs, Michigan, 49319 USA
Sales & support: 1-888-SOFT-440 (or 616-340-7277) Fax: 616-696-8121