Re: Objective-C in a Time Constraint Thread
Re: Objective-C in a Time Constraint Thread
- Subject: Re: Objective-C in a Time Constraint Thread
- From: Kevin Boyce <email@hidden>
- Date: Tue, 28 Feb 2006 10:06:36 -0500
On Feb 26, 2006, at 8:19 AM, Chandrasekhar Ramakrishnan wrote:
I'm trying to get a better understanding of issues that may arise
when using Objective-C inside of a CoreAudio IOProc.
<snip>
Is this comment still accurate? If so, calling objc_msgSend in an
IOProc is certainly risking audio glitches. Are there ways to
decrease the probability of having the cache collected or is there
any way to avoid it altogether? For example, will caching the IMP
and invoking that directly help?
As another data point:
I'm shipping a sound app in which the output code is based on Kurt
Revis' QTSoundFilePlayer, which uses an ObjC message send in the
render callback. It's just one message, and it's the same each
time. The only time I've had problems with audio glitches is when
the audio file is on a spun-down disk, which is hardly an ObjC
problem. So it's safe to say that at least for this case the ObjC
message send isn't an issue.
-Kevin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden