Re: Completing a sound before continuing on
Re: Completing a sound before continuing on
- Subject: Re: Completing a sound before continuing on
- From: Ricky Sharp <email@hidden>
- Date: Sun, 17 Apr 2005 15:54:44 -0500
On Apr 17, 2005, at 1:30 PM, Gen Kiyooka wrote:
You might try the Carbon SysBeep(0) call. I think it blocks, waiting
for the
command to complete before returning. Seems a lot simpler for beeping
than
the other solns.
SysBeep is also asynchronous. It used to be synchronous, but I believe
was changed to async starting in System 7.5
I would just use the async playback and then sit in a loop. But rather
than a very tight loop, I would just sleep the thread for say 100 ms
for each iteration. Then, read some 'are we done' flag. Repeat as
necessary.
I believe someone else mentioned to listen for the 'sound is done'
notification. Such a notification can set your 'done' flag.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
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