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

Re: Cocoa Sounds


  • Subject: Re: Cocoa Sounds
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 9 Nov 2009 10:50:56 -0800

I ran into this too. A decent workaround is to preload the sound: create an NSSound object for the audio file you want to play, set its volume to zero, then play it. After that it's "warmed up" and will play instantly.

(Actually not entirely instantly on laptops, which will turn off the audio hardware when it hasn't been used in a few minutes, to save battery power. Turning it back on delays the sound a fraction of a second and creates a slight 'pop'.)

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa Sounds
      • From: "Sean McBride" <email@hidden>
References: 
 >Cocoa Sounds (From: Chunk 1978 <email@hidden>)
 >Re: Cocoa Sounds (From: Chunk 1978 <email@hidden>)
 >Re: Cocoa Sounds (From: Shawn Erickson <email@hidden>)
 >Re: Cocoa Sounds (From: Chunk 1978 <email@hidden>)
 >Re: Cocoa Sounds (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Re: beginner question, NSNumber, NSDecimalAsNumber
  • Next by Date: Re: Cocoa Sounds
  • Previous by thread: Re: Cocoa Sounds
  • Next by thread: Re: Cocoa Sounds
  • Index(es):
    • Date
    • Thread