• 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: Brian Willoughby <email@hidden>
  • Date: Thu, 25 Jun 2009 15:42:50 -0700


On Jun 25, 2009, at 15:23, james mccartney wrote:
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.


Agreed.

However, to be pedantic, one also shouldn't even be using a standard C function call per sample to fill a buffer, unless it absolutely cannot be avoided. Whenever possible, whether you deal with an ObjC method or C function, pass the buffer pointer to a single routine and use simple math and looping to fill the buffer. Certainly, there are complex cases where a function must be called for every sample, but those cases will require more performance optimization.

Brian Willoughby
Sound Consulting

_______________________________________________
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


  • Follow-Ups:
    • Re: iphone Audio Unit mixer balance
      • From: james mccartney <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: Re: iphone Audio Unit mixer balance
  • Index(es):
    • Date
    • Thread