• 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: Cocoa-Heavy Audio Unit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa-Heavy Audio Unit


  • Subject: Re: Cocoa-Heavy Audio Unit
  • From: Daniel Jalkut <email@hidden>
  • Date: Tue, 31 Jan 2006 11:45:54 -0500


On Jan 30, 2006, at 10:12 PM, William Stewart wrote:

No frustration - I'm trying to be clear and to understand the context of your comments.

Good to know, thanks for the reassurance!

We've discussed with a number of people the suitability of using ObjC for real-time (or better, time-constrained) implementations... It has made us nervous, given that ObjC message sends are treated as an opportunity for the ObjC runtime to re-evaluate its world, and thus can not only involve locks, but also memory allocations. I would be extremely concerned and extremely cautious about using ObjC in this manner; for a view it is excellent of course. I'm sure others would have a point of view about this...


While I'm not an expert about ObjC messaging, I don't think it's quite as much of a crap shoot as you suggest.  As I understand it there is some lookup and binding that happens on the first call to an object's method, for instance, but afterward it is cached and behaves much like a normal subroutine call.

You might be right about the possibility of memory allocations on the first call, but is this much different than a C++ Audio Unit malloc'ing support objects with "new" ?

I tend to think of the ObjC as *relatively* high-level, consisting of essentially an advanced allocation and caching system - I don't imagine there being much locking in the straightforward use of the runtime to prepare and call through to object methods.

Would love to hear the opinions of others more experienced with both ObjC and CoreAudio, though.

Daniel

 _______________________________________________
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

References: 
 >Re: Cocoa-Heavy Audio Unit (From: Ian Kemmish <email@hidden>)
 >Re: Cocoa-Heavy Audio Unit (From: Daniel Jalkut <email@hidden>)
 >Re: Cocoa-Heavy Audio Unit (From: William Stewart <email@hidden>)
 >Re: Cocoa-Heavy Audio Unit (From: Daniel Jalkut <email@hidden>)
 >Re: Cocoa-Heavy Audio Unit (From: William Stewart <email@hidden>)

  • Prev by Date: Re: Accessing underlying AUGraph being used by quicktime
  • Next by Date: Problem using two connected graphs
  • Previous by thread: Re: Cocoa-Heavy Audio Unit
  • Next by thread: Re: Cocoa-Heavy Audio Unit
  • Index(es):
    • Date
    • Thread