• 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
Re: How To Get Idle Time to the edit and view components?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How To Get Idle Time to the edit and view components?


  • Subject: Re: How To Get Idle Time to the edit and view components?
  • From: Urs Heckmann <email@hidden>
  • Date: Wed, 4 Jun 2003 13:45:56 +0200

Am Mittwoch, 04.06.03, um 11:30 Uhr (Europe/Berlin) schrieb Shai Shasag:

Eric has recently asked: How To Give Idle Time From The AU To The Host ?

I would like to add the question of how to get idle time for the view and edit component?

In the pre-carbon even model, we used to have an idle even, which I can no longer find in the carbon evens. Another option would be to install an idle timer - but method can have it's problems.

I guess you ask about an equivalent for VST's idle() method. - I think the recommended way isn't installing an idle timer but a RunLoopTimer. The idle timer often doesn't get called, i.e. during user interaction. The RunLoopTimer gets called anyway.

In my gui stuff I do this, works quite well so far:

InstallEventLoopTimer( GetCurrentEventLoop(), 0, kEventDurationMillisecond * 50, NewEventLoopTimerUPP( TimerProc ), this, &timer );

(this = my control dispatch object, TimerProc = C callback that distributes time to my control objects)

HTH,

;) Urs


urs heckmann
email@hidden
www.u-he.com

2b | ! 2b
_______________________________________________
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:
    • Re: How To Get Idle Time to the edit and view components?
      • From: Bill Stewart <email@hidden>
    • Re: How To Get Idle Time to the edit and view components?
      • From: Philippe Wicker <email@hidden>
References: 
 >How To Get Idle Time to the edit and view components? (From: Shai Shasag <email@hidden>)

  • Prev by Date: V1 & V2 API
  • Next by Date: Re: How To Get Idle Time to the edit and view components?
  • Previous by thread: How To Get Idle Time to the edit and view components?
  • Next by thread: Re: How To Get Idle Time to the edit and view components?
  • Index(es):
    • Date
    • Thread