• 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: memory use / embedding concerns
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: memory use / embedding concerns


  • Subject: Re: memory use / embedding concerns
  • From: Brian Willoughby <email@hidden>
  • Date: Sun, 13 Sep 2009 20:05:05 -0700


On Sep 13, 2009, at 12:14, John Clements wrote:
I'm trying to embed CoreAudio functionality in a system (mzscheme) that uses precise garbage collection. In order to do this successfully, I need to be able to identify the blocks of memory allocated by the CoreAudio library, and walk them for pointers to other pointers.

I'm not doing anything terribly fancy; the calls I'm making are lifted directly from the PlaySoftMIDI example project. Creating and connecting a few AUGraph nodes, fetching an AudioUnit pointer, and sending it a sequence of MIDI commands.

Unfortunately, AUGraph's are really OpaqueAUGraph structs, for which (as far as I can tell) I don't have header file definitions.

My first thought is to ask whether your CoreAudio setup is static or dynamic. If your graph and AU objects are all set up at start time and live until your program is terminated, then why would you need to do garbage collection? I understand, though, that if you're breaking down and setting up new audio graphs at run time, then you might need garbage collection. Another question is whether your system would allow you to allocate outside its garbage collection so that it just leaves CoreAudio alone.


Brian

_______________________________________________
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: 
 >memory use / embedding concerns (From: John Clements <email@hidden>)

  • Prev by Date: memory use / embedding concerns
  • Next by Date: Re: memory use / embedding concerns
  • Previous by thread: memory use / embedding concerns
  • Next by thread: Re: memory use / embedding concerns
  • Index(es):
    • Date
    • Thread