I’m trying to play an mp3 in a Mac Application in Xcode 4.2. How would I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are not giving us much to work with…
If you just want a simple sound, use NSSound:
With NSSound, the sound plays concurrently with your code. A common mistake is to release the sound or resource while it is still playing. Don’t do that.
You can also use QTMovie in QTKit:
For more demanding sounds, use CoreAudio