Re: Playing Music in Objective C
Re: Playing Music in Objective C
- Subject: Re: Playing Music in Objective C
- From: Kyle Sluder <email@hidden>
- Date: Mon, 13 Feb 2012 08:14:45 -0800
On Feb 13, 2012, at 7:30 AM, Jim McGowan <email@hidden> wrote:
> As the OP was creating a simple puzzle game I think NSSound is a reasonable way to go for the sound effects. Might even be reasonable for the music too, if it is just a looping MP3.
AVAudioPlayer is simple enough that I would recommend not using NSSound at all in new code. AVFoundation exists on iOS, and is clearly the way of the future on both platforms.
https://developer.apple.com/library/mac/#documentation/AVFoundation/Reference/AVAudioPlayerClassReference/Reference/Reference.html#//apple_ref/doc/uid/TP40008067
--Kyle Sluder
_______________________________________________
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