Re: Preloading sounds
Re: Preloading sounds
- Subject: Re: Preloading sounds
- From: m <email@hidden>
- Date: Wed, 21 Jan 2004 00:44:22 -0600
On Jan 20, 2004, at 5:48 PM, Mike Brinkman wrote:
I wrote a simple Tic Tac Toe game in Cocoa, and it works pretty well
for the
most part. The only real problem I'm encountering is that the first
time I
play a sound, there is a brief delay.
Betcha what's going on here is that the sound hardware has gone to
sleep and takes a moment to turn on. See if it doesn't happen if you
have iTunes playing something when your app makes sound.
A workaround I have used is to have a silent sound that I start playing
a moment before I'm likely to need a sound. You could also just
periodically play the sound to keep the sound hardware awake.
A less quick and dirty solution would be to programatically disable the
powering down of the sound system by the power manager. Have a gander
at the docs.
_murat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.