• 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: Completing a sound before continuing on
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Completing a sound before continuing on


  • Subject: Re: Completing a sound before continuing on
  • From: Sherm Pendley <email@hidden>
  • Date: Sat, 16 Apr 2005 23:39:25 -0400

On Apr 16, 2005, at 10:44 PM, Chad Armstrong wrote:

I have a program which calls NSBeep() and then it closes the program.  I've found that if the default beep is a longer "beep" sound, it will not always play the entire sound before the program closes.  Is there a way to have the program wait for the sound to play in its entirety before quitting?

I don't know of one.

Also if I want to play an AIFF sound (not with NSBeep, but with other methods), will I also have the same problem that the sound would not finish before the program quit?

If you use NSSound, you could either repeatedly call -isPlaying in a loop, or implement -sound:didFinishPlaying: in a delegate object.

sherm--


Cocoa programming in Perl: http://camelbones.sourceforge.net

Hire me! My resume: http://www.dot-app.org


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Completing a sound before continuing on
      • From: Don Yacktman <email@hidden>
References: 
 >Completing a sound before continuing on (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Custom view, selection consistency with NSTableView
  • Next by Date: Re: #define issues
  • Previous by thread: Completing a sound before continuing on
  • Next by thread: Re: Completing a sound before continuing on
  • Index(es):
    • Date
    • Thread