Re: graphics in AU
Re: graphics in AU
- Subject: Re: graphics in AU
- From: Urs Heckmann <email@hidden>
- Date: Sun, 29 Sep 2002 16:46:45 +0200
Which list is recommended for this kind of stuff? I 'seen
hit-developers, carbon-developers, any idea?
Okay, I found some answers.
Now I have a knob control drawing a Quartz-based rotated png with
transparent backgound. That's all fine and very comfortable.
I still can't find a way to attach the sliderTrackProc and receive
Events of kEventControlTrack. Dunno what I'm missing.
Next thing would be wrapping it in a class. Is it viable to modify the
AUPublic code or should I derive from there, make my own factory like
AUControlGroup?
Another thing is, I experience crashes when I open the AU a second
time, obviously by some uncertainty how to dispose off data I have
added to the derived AUCarbonViewBase (the image, that is). Do I have
to take care for superclasses when I implement a deconstructor there?
It looks like this:
class myAUView : public AUCarbonViewBase {
public:
myAUView(AudioUnitCarbonView auv) : AUCarbonViewBase(auv)
{
TestImage = GetTestImage(); // read Image from component
bundle
}
~myAUView()
{
if ( TestImage != NULL )
{
CGImageRelease( TestImage );
TestImage = NULL;
}
}
virtual OSStatus CreateUI(Float32 xoffset, Float32 yoffset);
private:
CGImageRef TestImage; // my knob image
};
Will the destructor be called at all? And if so, when?
Thanks,
;) 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.