• 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: Double Beep
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Double Beep


  • Subject: Re: Double Beep
  • From: email@hidden
  • Date: Thu, 14 Aug 2003 19:12:37 -0700

A simple way for this is to just sleep the thread, but then I end up with the problem (as you've pointed out) that the delay can be too long or short.

Is there a way to query the system for the name of the current system beep sound?

Then I could use NSSound to know when the sound is done playing.

______________________________________________________________________
Previous message from Dave on 8/14/03 at 9:53 PM -0400
**********************************************************************
...

Note that this example will work differently with different alert sounds (set in the System Prefs, Sound panel). A safe delay for the NSTimer would be about half a second, but this may sound too long for other alert sounds (such as Funk, whereas half a second is good for Blow). You may just want to settle with 0.3, 0.35, or 0.4.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Double Beep (From: Dave <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Re: Misunderstanding re -[NSMatrix selectedCells]??
  • Previous by thread: Re: Double Beep
  • Next by thread: inheritance and initialisation
  • Index(es):
    • Date
    • Thread