Problem preloading sounds

Problem preloading sounds
0.0 0



I have a problem preloading sounds in Android, I will try to explain my issue (using cocos2d-2.0-x-2.0.4 and .ogg files):

  • I use SimpleAudioEngine::sharedEngine()~~>preloadEffect to preload some sounds
    ~~ In some of them the line soundID = this.mSoundPool.load(this.mContext.getAssets().openFd(pPath), 0); in the method “createSoundIDFromAsset(final String pPath)” of the “” lasts 30 or 40 seconds (only for that one effect).
  • Also, when the sound effects are loaded and I call “SimpleAudioEngine::sharedEngine()->playEffect(path);” some times I get a message in the LogCat “sample X not READY” and the effect does not sound…

I have searched for a solution but I did not find any… Anyone has the same problem? some helping soul who knows how this bug could be fixed?

Thank you!