Path name for music file on Android? (same code works fine for iOS)


#1

I simply copy all files in “Resources” from iOS project to android project, including images,fonts, and music files.

for iOS, the music files are in Resources/SFX, and I use SimpleAudioEngine to load the file like below:

SimpleAudioEngine::sharedEngine()->playEffect(“shoot.wav”);

but the code doesn’t work under Android. It keeps saying “shoot.wav” cannot be found.

I also tried move all sound files from Resources/SFX to Resources folder, but still having the same problem.

so if I call playeEffect(“shoot.wave”), what is the expected path for the file?

Thanks.