How to Play Audio

Discussion in 'Mac Programming' started by Yondaime111, Mar 14, 2009.

  1. macrumors newbie

    Yondaime111

    Joined:
    Jan 26, 2009
    #1
    I am a complete noob to programming...I wrote a hello world cocoa-based application. I was wondering who to play a sound when a button is clicked along with the text. Can somebody help me?
     
  2. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #2
    You've probably got a fair way to go before you get there but the audio API on Mac OS X is called OpenAL.
     
  3. macrumors newbie

    Joined:
    Jan 7, 2009
    #3
    If all you want to do is play a pre-recorded sound, check out NSSound.
     
  4. thread starter macrumors newbie

    Yondaime111

    Joined:
    Jan 26, 2009
    #4
    I actually figured it out almost immediately after I posted this thread. Thanks for the help though.
     

Share This Page