• 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: 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


References: 
 >Completing a sound before continuing on (From: Chad Armstrong <email@hidden>)
 >Re: Completing a sound before continuing on (From: Sherm Pendley <email@hidden>)
 >Re: Completing a sound before continuing on (From: Don Yacktman <email@hidden>)
 >Re: Completing a sound before continuing on (From: Gen Kiyooka <email@hidden>)

  • Prev by Date: Re: Completing a sound before continuing on
  • Next by Date: Re: Completing a sound before continuing on
  • Previous by thread: Re: Completing a sound before continuing on
  • Next by thread: Re: Completing a sound before continuing on
  • Index(es):
    • Date
    • Thread