• 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
Alternative to Delay()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Alternative to Delay()


  • Subject: Alternative to Delay()
  • From: Geoff <email@hidden>
  • Date: Mon, 28 Jul 2003 09:34:16 +1000

Is there an alternative to the Delay routine that is more accurate? I have a button that when pressed sends a tune to a synthesiser and I want it to remain hilited until the tune is complete. Delay enables me to do this synchronously but not very accurately. Accuracy is not that important in this case but I didn't want to obscure the main question with a more involved example.

Now this could just be me being lazy, I know that I can use timers with much finer grain than Delay but timers involve working asynchronously, ie, from the button handler start the tune, put up an alert or change the cursor and suspend the window then install the timer and return from the button handler and then later when the timer reports, return to normal.

Is there an accurate way of doing this synchronously so that I can grab the mouse down via an action proc and stay in there thus keeping the button hilited until the appropriate time interval passes for those cases where I want to keep things simple?

Any comments from anybody doing this kind of thing would be most welcome.

Cheers Geoff %^>
_______________________________________________
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: Alternative to Delay()
      • From: Markus Fritze <email@hidden>
    • Re: Alternative to Delay()
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: AU Hosts and Parts, Groups and Multi-timbrality
  • Next by Date: Re: Alternative to Delay()
  • Previous by thread: Re: Parts, Groups and Multi-timbrality
  • Next by thread: Re: Alternative to Delay()
  • Index(es):
    • Date
    • Thread