iPhone SDK CFURLRef C++ in Obj-C _AudioServicesCreateSystemSoundID

Maybe I’m just stupid, but playing a simple sound with the iPhone SDK was ridiculously hard to do. I finally go it working. It took a number of tricks, such as adding AudioToolbox.framework (found here). Go ahead and mix C++ and Obj-C. And of course, you have to create the CFURLRef, however you want to do it, you have to make sure you do it right (looking up some weird path using the application bundle is part of it).

A good site for free sounds is soundsnap.com.

» Popup ads start exploiting the iPhone
» Can the iPhone send photos by email?
» iPhone Typing Tips
» Apple Rocks! iPhone 2.0 a welcome upgrade
» iPhone with YouTube will be successful

Leave a Message

No Messages

No Messages

RSS feed for comments on this post. TrackBack URI

Leave a Message