Re: AudioUnit life cycle
Re: AudioUnit life cycle
- Subject: Re: AudioUnit life cycle
- From: Urs Heckmann <email@hidden>
- Date: Tue, 8 Oct 2002 09:17:29 +0200
Am Dienstag, 08.10.02, um 07:02 Uhr (Europe/Berlin) schrieb Jim
Wintermyre:
Next issue is static data. - Will that always be shared by every
instance of an AudioUnit? If so, will static data get lost when every
instance of an AudioUnit is disposed (i.e. when in Logic all instance
will be replaced by others or no effect)?
Yes - by every AU IN THE SAME PROCESS...
Static data for a class is like static data in a compile unit - once
its
there it is there until the code itself is unloaded - it really has no
connection with any instance of a class itself.
Just want to point out to everyone who's porting VST plugins to AU
that this behavior is *different* from the way things currently work
in VST. In VST, the code and data were loaded separately for each
instance of the plugin, so statics were not shared among multiple
instances of the same plug. For me that was always one of the
annoying differences in the Mac VST implementation.
Yes, that's what I was thinking of. And my initial concerns prove to be
no problem. Now you have to load all these images and sample data only
once, right? - That's progress!
Cheers,
;) Urs
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.