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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to