• 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: Playing Music in Objective C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Playing Music in Objective C (From: Jim McGowan <email@hidden>)

  • Prev by Date: Re: Playing Music in Objective C
  • Next by Date: Re: Playing Music in Objective C
  • Previous by thread: Re: Playing Music in Objective C
  • Next by thread: Re: Playing Music in Objective C
  • Index(es):
    • Date
    • Thread