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.
Leave a Reply