Hello,
for some reason I have not installed xcode4 templates correctly, so all the .m files of CocosDenshion folder were empty, without code! So, I have re-downloaded Cocos2d-x and re-installed the templates removing the old installation and now my game works with music.
OLD MESSAGE:
Hello,
I’ve created a simple game in xcode with Cocos2d-x and it works 100% perfect (sprites, graphic, animations, ecc.).
The only problem I have is with the music. I simply use this command:
CocosDenshion::SimpleAudioEngine::sharedEngine()->playBackgroundMusic(“Music.wav”, true);
The same project in Win32 works perfect, instead in xcode the above command gives me an “Apple Mach-O Linker (id) error”. This is a screenshot:
http://imageshack.us/photo/my-images/836/screenshotow.jpg/
Can anyone help me?
Thanx
Stefano