• 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: Objective-C in a Time Constraint Thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: How to send myself an AppleEvent?
  • Next by Date: Re: List of all available classes ?
  • Previous by thread: Re: Objective-C in a Time Constraint Thread
  • Next by thread: Re: Objective-C in a Time Constraint Thread
  • Index(es):
    • Date
    • Thread