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

memory use / embedding concerns


  • Subject: memory use / embedding concerns
  • From: John Clements <email@hidden>
  • Date: Sun, 13 Sep 2009 12:14:30 -0700

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.

Naturally, there's an alternative approach; I could put the CoreAudio in its own process, give it its own memory space, and everything would be fine. This is yucky, though, because then rather than using a nice FFI interface, I have to roll my own socket connection etc.

So, I'm looking for one of the following:

1) RTFM! This was answered in an earlier message!
2) RTFM! The layout of the OpaqueAUGraph struct is documented at ...
3) This is impossible; CoreAudio allocates memory in an unpredictable way that you can't manage.
4) <insert other miraculous solution here>.


Many thanks in advance,

John Clements

_______________________________________________
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: memory use / embedding concerns
      • From: James McCartney <email@hidden>
    • Re: memory use / embedding concerns
      • From: Andre Schnoor <email@hidden>
    • Re: memory use / embedding concerns
      • From: Brian Willoughby <email@hidden>
  • Prev by Date: Re: iTunes 9: SRC bug fixed? SRC complexity?
  • Next by Date: Re: memory use / embedding concerns
  • Previous by thread: Re: iTunes 9: SRC bug fixed? SRC complexity?
  • Next by thread: Re: memory use / embedding concerns
  • Index(es):
    • Date
    • Thread