Re: Weird sound problem
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.