• 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: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm


  • Subject: Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
  • From: Brian Willoughby <email@hidden>
  • Date: Sun, 20 Jun 2010 02:14:45 -0700

On Jun 20, 2010, at 02:05, Motti Shneor wrote:
When is the Obj-C runtime loaded?
How fast is its initialization?
Is it loaded only once for the host application, or is it part of my own code?
how is it attached to my code?
Is the code compiled for .mm any slower?

Unlike C++, ObjC does not generate any code behind the scenes. The only overhead is the method call itself, which adds only a few cycles above the typical i386 function call. There is a potential look-up hit on the first call, but ObjC offers means to obtain the function address in advance, if you want to avoid that overhead.



what about thread safety?




There are a lot of good questions here, but only a few are specific to CoreAudio. Namely, I'd imagine that all but the "host application" questions could be answered more readily on other Apple mailing lists. Hopefully, someone can comment on the specifics of AudioUnit hosting, if there are any general assumptions that can be made, before passing you off to a more appropriate forum.

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


  • Follow-Ups:
    • Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
      • From: Kyle Sluder <email@hidden>
References: 
 >Question: What is the impact of changing .cpp AudioUnitEffect source to .mm (From: Motti Shneor <email@hidden>)

  • Prev by Date: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
  • Next by Date: Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
  • Previous by thread: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
  • Next by thread: Re: Question: What is the impact of changing .cpp AudioUnitEffect source to .mm
  • Index(es):
    • Date
    • Thread