PDA

View Full Version : How to Play Audio




Yondaime111
Mar 14, 2009, 07:58 PM
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?



Cromulent
Mar 14, 2009, 10:14 PM
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?

You've probably got a fair way to go before you get there but the audio API on Mac OS X is called OpenAL.

BorgCopyeditor
Mar 15, 2009, 12:05 AM
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?

If all you want to do is play a pre-recorded sound, check out NSSound.

Yondaime111
Mar 15, 2009, 08:59 PM
I actually figured it out almost immediately after I posted this thread. Thanks for the help though.