Re: Completing a sound before continuing on
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--
|
_______________________________________________
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