• 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: james mccartney <email@hidden>
  • Date: Thu, 25 Jun 2009 16:28:28 -0700


On Jun 25, 2009, at 3:42 PM, Brian Willoughby wrote:


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

Yes, I wasn't suggesting that.

I was saying basically, replace this:

for (int i = 0; i<n; ++i) out[i] = [myObj nextSample];

with this:

short* in = [myObj getBuffer];
for (int i = 0; i<n; ++i) out[i] = in[i];


However it does depend.
If you are doing some very complex algorithm, it may be a win to call a vecLib routine per sample.
measure.



_______________________________________________ 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: Brian Willoughby <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>)
 >Re: iphone Audio Unit mixer balance (From: Brian Willoughby <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