Crash in preloadEffect() with Samsung Galaxy S 2

I’m using cocos2d-x 2.0.3.

Testing an application with a SGS2, I got a crash using CocosDenshion in preloadEffect() or playEffect().
I try with a little .mp3 (1~2 sec.) and little .wav (1~2 sec.) with same result.

If I do not preload, crash in playeffect() or the effect is not played for the first time, but if the second time.

This is the Logcat result:

10-19 18:43:30.745: E/AudioEffect(10510): set(): AudioFlinger could not create effect, status: 1
10-19 18:43:30.745: E/libOpenSLES: Effect initCheck returned
1
10-19 18:43:30.745: E/libOpenSLES(10510): EnvironmentalReverb effect initialization failed
10-19 18:43:30.745: D/OPENSL_ENGINE.CPP (10510): Failed to find static method id of getAssetManager

This works successfully in:

* Samsung Galaxy Tab 10.1 GT-P7510

  • Android 3.1

* Samsung Galaxy S 3 GT-I9300

  • Android 4.0.4

* iPhone 4s

  • iOS 6

* iPad 2

  • iOS 6

But crashs in:

Galaxy Galaxy S 2 GT-I9100

  • Android 2.3.4

I have the same problem, you have solved?

Yep…

I found the solution with this posts:

http://www.cocos2d-x.org/projects/cocos2d-x/wiki/Use_OpenSL_ES_to_play_effect_on_Android?version=10
http://www.cocos2d-x.org/boards/6/topics/16695?r=16699

i am working on a cocos2dx (version 2.0.4) game. I am testing it on samsung s2 GT-I9100 (version: 2.3.3) and i getting the same errors as mentioned above which are:

01-16 16:46:54.945: E/AudioEffect(5025): set(): AudioFlinger could not create effect, status: 1
01-16 16:46:54.945: E/libOpenSLES: Effect initCheck returned
1
01-16 16:46:54.945: E/libOpenSLES(5025): EnvironmentalReverb effect initialization failed

Can anyone please confirm whether this is opensl ES issue on this particular android device? I would appreciate some help.

Thanks

PS, the game works fine on other android devcies (i have tested on samsung galaxy s3 and galaxy note).