I'm new to Cocos2d-x and working on a mac. I'm trying to play music in my demo project but I'm unable to include "SimpleAudioEngine.h" in the default HelloWorld Project. I tried adding CocosDenshion to my project but I got more errors. Anyone who knows how to fix this please help.
You need to add CocosDenshion, which is the audio library. Be sure the link is done correctly or copypaste it into your folder and use <> import just in case
Once you have it correctly linked the functions used are quite trivial:
Be sure to be using the supported formats in each platform