• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Useful Fix for those Porting VSTGUI based plug-ins to AU
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Useful Fix for those Porting VSTGUI based plug-ins to AU


  • Subject: Useful Fix for those Porting VSTGUI based plug-ins to AU
  • From: Art Gillespie <email@hidden>
  • Date: Fri, 26 Sep 2003 13:21:05 -0400

Fellow intrepid porters:

The problem of controls in VSTGUI-based plugins 'running away' in some hosts (In my case this behavior was manifesting itself in DP 4.1 when another window with animation (e.g. the performance meter) was open) is caused by the following code in vstgui.cpp:1946:

void CDrawContext::getMouseLocation (CPoint &point)
{
... other platform switches omitted
#elif MAC
Point where;
GetMouse (&where);
point (where.h, where.v);
#elif MOTIF

...

}

Which should be

Point where;
CGrafPtr save;
GetPort(&save);
SetPort(getPort());
GetMouse (&where);
point (where.h, where.v);
SetPort(save);

Hope that saves someone else an hour or so of debugging :) Also, I no longer subscribe to vst-development, so if anyone has the inclination to post this there...

Best,

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.

  • Follow-Ups:
    • always crashing in CVST2AURegister constructor
      • From: "Lists linplug.com" <email@hidden>
    • Re: Useful Fix for those Porting VSTGUI based plug-ins to AU
      • From: Marc Poirier <email@hidden>
  • Prev by Date: Re: AU Midi Output
  • Next by Date: Re: AU Midi Output
  • Previous by thread: Re: AU Midi Output
  • Next by thread: Re: Useful Fix for those Porting VSTGUI based plug-ins to AU
  • Index(es):
    • Date
    • Thread