• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iphone Audio Unit mixer balance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

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>)
 >Re: iphone Audio Unit mixer balance (From: james mccartney <email@hidden>)

  • Prev by Date: Re: iphone Audio Unit mixer balance
  • Next by Date: Re: iphone Audio Unit mixer balance
  • Previous by thread: Re: iphone Audio Unit mixer balance
  • Next by thread: iPhone OS 3.0 and AudioQueueStart
  • Index(es):
    • Date
    • Thread