memory use / embedding concerns
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