On Jun 16, 2008, at 8:28 PM, Jens Alfke wrote:

On 16 Jun '08, at 5:15 PM, j o a r wrote:

I think that you can use QTKit to load and play sound files asynchronously.

QuickTime is pretty non-thread-safe too.

And there we're using the definition as "non-thread-safe"=="requires the main thread" :). QTMovie on 10.5 has +enterQTKitOnThread/ exitQTKitOnThread, but I saw regular crashes on secondary threads due to certain codecs trying to display an app-modal panel.

NSSound already plays the sound asynchronously. It's apparently loading the sound that blocks for a long time (although it's lazy enough that it won't actually load the sound till the first time you ask it to play). I'm not sure QT would do any better (especially since NSSound may well be using QT under the hood anyway.)

Or maybe the _initializeCA is setting up CoreAudio? Wild guess...I've never used CoreAudio.

--
Adam

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [EMAIL PROTECTED]

Reply via email to