Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Objective-C in a Time Constraint Thread




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Objective-C in a Time Constraint Thread (From: Chandrasekhar Ramakrishnan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.