Another possible problem and solution(not yet) for Samsung Galaxy S2 crash...

OK…

It’s a note for everybody want to resolve the crash problem on S2.

I found there are many report that SoundPool may the root cause make S2 crash.

Here is a thread on google forum which talked about this :

http://code.google.com/p/android/issues/detail?id=17623

And there is someone who said you can replace the SoundPool with OpenSL by shared library.

Here is the link :

http://www.grayfinstudios.com/post?id=ag1ncmF5Zmlud2ViYXBwcgwLEgRQb3N0GIHuBQw

Hope these information will help you.

Thank you.

Thank you.
But OpenSL is available since android2.3.

Dear Minggo:

Yes, I know it, and the article mentioned about that too.

So maybe we can have a switch choice between S2 or non-S2.

This will be worth since S2 almost have half market on Android-Platform.

Ho do you think about this ?

Yes, I think it is worth doing it.

I checked issue a three month ago in other library.
OpenSL solve the problem.

What’s your meaning?

Using soundpool in galaxyS2 has a problem. Phone freezes(not respond) sometimes. ( in soundpool.play function )
Chainging soundpool to OpenSL solve the problem.

Sorry to my english…… T.T

It’s cool !

Could you share the solution on cocos2d-x, so that we can make our games run smoothly on S2 ?

Thank you in advanced.

three way…

  1. Waiting for 1.0.3 patch. (http://www.cocos2d-x.org/issues/674)
  2. Waiting for Icream Sandwich upgrade patch GalaxyS2. ( possible in 2~3 month? )
  3. Develop OpenSL version soundpool. (You can reference sample project in $(ndk)/samples/native-audio )

is someone start something about that ? or a date for 1.0.3 path ? (or just a date for openSL patch ?)

Guys, I found the OpenSL ES has implemented and released.

You may tried the news link to check the detail, http://cocos2d-x.org/news/65