• 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: Preloading sounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Preloading sounds
      • From: Mike Brinkman <email@hidden>
References: 
 >Preloading sounds (From: Mike Brinkman <email@hidden>)

  • Prev by Date: Re: making a screenshot
  • Next by Date: Re: NSURLDownload step by step
  • Previous by thread: Preloading sounds
  • Next by thread: Re: Preloading sounds
  • Index(es):
    • Date
    • Thread