• 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: Conrad Shultz <email@hidden>
  • Date: Sun, 12 Feb 2012 10:35:28 -0800

The simplest (and therefore least customizable) approach would be to use NSSound. But I think it will do everything you stipulate.

See the topical documentation as well: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Sound/Sound.html

(Sent from my iPhone.)

--
Conrad Shultz

On Feb 12, 2012, at 9:56, Pascal Harris <email@hidden> wrote:

> My game is playable - so I'm polishing the hell out of it right now.  I've never written a game before though so, whilst I can manage the graphics okay (it's a puzzle, so NSMatrix does nicely), I'm utterly perplexed as to how to play sound effects and music.  The music isn't written yet, but I was planning on MP3.
>
> The sound effects will most likely be short WAVs. I've investigated OpenAL - and the example that Apple provides is impressively complex.  Googling gives a lot of iOS suggestions, but none for Mac OS X.
>
> So my question is, if you were me, how would you play music?  I'm not interested in surround sound or other fanciness - I just want the music and effects files to play easily.  Can anyone point me in the direction of a primer or a short example?
>
> Thanks!
> _______________________________________________
>
> 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


_______________________________________________

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: Playing Music in Objective C
      • From: Charles Srstka <email@hidden>
References: 
 >Playing Music in Objective C (From: Pascal Harris <email@hidden>)

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