Re: How To Give Idle Time From The AU To The Host ?
Re: How To Give Idle Time From The AU To The Host ?
- Subject: Re: How To Give Idle Time From The AU To The Host ?
- From: Chris Reed <email@hidden>
- Date: Wed, 4 Jun 2003 15:24:12 -0500
Sorry for the slow response...
Have you tried running the current run loop using CFRunLoopRunInMode()
in the place where you would call the masterIdle() callback? It's
really quite similar.
If you are in the main thread, running the current run loop should get
the app processing events for as long as you let it. Of course, the
host may not deal well with new events coming in while it is still
handling a previous one. You'll just have to test it with a lot of
hosts.
But this kind of nested run loop running was/is done all the time in
Cocoa. And if the host is using Carbon events, it should work fine.
-chris
On Tuesday, June 3, 2003, at 11:32 AM, Eric Eizenman wrote:
Hi,
Basically I'm looking for equivalent to VST's 'masterIdle()' function,
which the plug-in uses to give idle time to host.
The problem happens when a user clicks and drags a control then all
the host's idle activates freezes.
I saw couple of plug-ins with custom editor that presents that kind of
behavior as well as ours. The reason is probably because we're using
'TrackMouseLocation()' to check when the mouse button is released.
Until we'll have full Carbon events support, Is there a way to do it ?
------------------------------------------------------------------
Eric Eizenman
Waves, Plug-ins Development
------------------------------------------------------------------
_______________________________________________
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.
_______________________________________________
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.