Re: iphone Audio Unit mixer balance
Re: iphone Audio Unit mixer balance
- Subject: Re: iphone Audio Unit mixer balance
- From: "Raleigh F. Rinehart" <email@hidden>
- Date: Thu, 25 Jun 2009 18:07:56 -0500
Thank you very much, that does the trick! Also thanks for the optimization suggestions, they a certainly worth implementing!
-raleigh On Jun 25, 2009, at 5:23 PM, james mccartney wrote: On Jun 24, 2009, at 8:47 PM, Raleigh F. Rinehart wrote: It does seem like is should work, and I believe that it should possible using audio units. However I afaik TouchFighter used OpenAL. So it seems to me that there is some additional secret sauce that needs to be applied to enable it to work when using raw AU. I just cant seem to figure what that might be.
Set distance to 1.0. By not setting it, the distance is zero which is at the center of your head, thus mono.
status = AudioUnitSetParameter(mMixerUnit, k3DMixerParam_Distance, kAudioUnitScope_Input, 0, 1., 0);
Also the output format of the mixer is stereo, but you are setting a mono stream format.
For performance, you shouldn't be using an ObjC message send per sample to fill your buffer. It would be better to write a method that returns a buffer pointer and do the buffer filling in C.
|
_______________________________________________
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