• 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: Weird sound problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird sound problem


  • Subject: Re: Weird sound problem
  • From: Chris Reed <email@hidden>
  • Date: Tue, 11 Feb 2003 16:03:29 -0600

On Monday, Feb 10, 2003, at 20:05 US/Central, Robert Grant wrote:

Not sure if this is related to CoreAudio or not (but everything audio ends up there?)....

I've found that in an app I have if I play a sound using NSSound too soon after
the computer wakes from sleep it bungs up the entire audio system. The only
way to unbung it is to kill the offending (my) app and put the computer to
sleep again. Waking it up once more brings everything back to life. The offending
sound is triggered by an IOKit notification.

Is there a trick to knowing when it's safe to start using audio?


Just an idea... but do you actually send the NSSound the play message in the IOKit notification handler? Maybe the CoreAudio server responds to sleep/wake notifications too in order to bring the audio subsystem back up. Have you tried simply delaying the play message to until maybe the next iteration of the main run loop?

Like I said, just an idea...

Also, I'm wondering if you can dump properties of the default audio device right before you send the play message to see if you notice anything that would help you.

-chris
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Weird sound problem (From: Robert Grant <email@hidden>)

  • Prev by Date: Re: Hosttime?
  • Next by Date: The Plugin Settings Approach.
  • Previous by thread: Weird sound problem
  • Next by thread: Re: Weird sound problem
  • Index(es):
    • Date
    • Thread