0.0 0


Hello, I am creating an game, but I have problems with audio playback on android.
Use the command to the audio

> CocosDenshion::SimpleAudioEngine::sharedEngine()->preloadBackgroundMusic(“level1/sounds/background.ogg”);

> CocosDenshion::SimpleAudioEngine::sharedEngine()->preloadEffect(“level1/sounds/shot.ogg”);

but the application closes on these lines …

that he needs to command or need some library …

I tested with ogg and wav audio


Now, the audio resources should lie under the root of assets. Can not support sub folder.


Hi Minggo

I changed the location of the audio files to the root, but the problem persists, the application crash when entering these lines



Debug it?