Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: iphone Audio Unit mixer balance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iphone Audio Unit mixer balance




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

References: 
 >iphone Audio Unit mixer balance (From: "Raleigh F. Rinehart" <email@hidden>)
 >Re: iphone Audio Unit mixer balance (From: james mccartney <email@hidden>)
 >Re: iphone Audio Unit mixer balance (From: "Raleigh F. Rinehart" <email@hidden>)
 >Re: iphone Audio Unit mixer balance (From: james mccartney <email@hidden>)
 >Re: iphone Audio Unit mixer balance (From: "Raleigh F. Rinehart" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.