AU and libvstgui.a
AU and libvstgui.a
- Subject: AU and libvstgui.a
- From: Art Gillespie <email@hidden>
- Date: Wed, 19 Mar 2003 21:14:34 -0500
So on a whim today I tried porting a vst instrument (the venerable
'Angelina' from Big Tick) with a vstgui-based gui to au by linking in
libvstgui.a and writing a little bit of bridge code in my
AudioUnitCarbonView-derived class to handle the appropriate vst editor
opcodes.
And it works fine...
...Except...
I'm using SetOffset(GetXOffset(), GetYOffset()) before calls to Draw and
MouseDown to insure that vstgui doesn't draw over any host chrome. This
works well until I try to do the idle() thing (also with a call to
SetOffset(...)) from a EventTimer. Apparently SetOffset() isn't absolute,
so if I'm mousing a knob for example (Illegal in many southern states!), the
idle thread will offset all the drawing by xoffset,yoffset (cumulatively)
resulting in cool 'my-gui-is-jumping-up-and-down-thank-god-im-not-epileptic'
style animations.
Anyway, I'm at my wit's end at the moment, so I thought I'd relay this to
the list in case anyone had any suggestions for
the-guy-who-doesn't-know-quickdraw-as-well-as-he-thought.
- Is using SetOffset stupid for the desired outcome?
- Am I approaching bridging the vst notion of idle stupidly?
Malkovich, Malkovich,
Art
>
>0xBA
_______________________________________________
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.