Re: iphone Audio Unit mixer balance
Re: iphone Audio Unit mixer balance
- Subject: Re: iphone Audio Unit mixer balance
- From: james mccartney <email@hidden>
- Date: Thu, 25 Jun 2009 15:23:29 -0700
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