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

Re: Alternative to Delay()


  • Subject: Re: Alternative to Delay()
  • From: Chris Reed <email@hidden>
  • Date: Mon, 28 Jul 2003 13:24:12 -0500

But please don't do something like this synchronously. It freezes the UI of your app, and generally makes the user experience less pleasing. Using run loop timers or other timer mechanisms is not so hard, really.

-chris

On Sunday, Jul 27, 2003, at 18:49 US/Central, David Duncan wrote:

On Sunday, July 27, 2003, at 7:34 PM, Geoff wrote:

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.

You can use MPDelayUntil() or it's mach variant (whose name escapes me). These allow you to do delays at native timebase accuracy - which is probably far more accurate than you actually care about =).
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan
_______________________________________________
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.

References: 
 >Re: Alternative to Delay() (From: David Duncan <email@hidden>)

  • Prev by Date: seeking advice w/ coreaudio
  • Next by Date: Re: AU Hosts and Parts, Groups and Multi-timbrality
  • Previous by thread: Re: Alternative to Delay()
  • Next by thread: Re: Alternative to Delay()
  • Index(es):
    • Date
    • Thread