Re: iphone Audio Unit mixer balance
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