Re: Garbage collector in an audio unit
Re: Garbage collector in an audio unit
- Subject: Re: Garbage collector in an audio unit
- From: Brian Willoughby <email@hidden>
- Date: Sun, 23 May 2010 16:44:13 -0700
On May 23, 2010, at 16:17, paul Fultz wrote:
Now I have a framework for audio processing that uses Hans-boehm
garbage collector, and of course I dont do any memory allocations
during the process call. I was wondering if it was possible to use
this in an audio unit since it is ran inside the host. The Hans-
boehm gc requires an initialize command at the beginning of the
program on the mac. This may not be possible in an audio unit. Does
anyone have experience with this? Also, if I cant use Hans-boehm
gc, perhaps I could use cocoas garbage collector. I dont know if it
will manage c++ memory also. That part I could ask in the cocoa
mailing list.
AUBase::Initialize() must be called before any other code in the AU,
so you could set a global flag and call the H-b initialize exactly
once. However, I don't know what would happen if you have multiple
AudioUnits using the same gc or if the host is using the same gc.
Does Hans-boehm have any sort of protection against multiple
initialize calls? Is it open source?
The Cocoa gc only works with Obj-C instances.
I'm not quite sure why you would need gc anyway.
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