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 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