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 :
And there is someone who said you can replace the SoundPool with OpenSL by shared library.
Here is the link :
Hope these information will help you.
But OpenSL is available since android2.3.
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.
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.
- Waiting for 1.0.3 patch. (http://www.cocos2d-x.org/issues/674)
- Waiting for Icream Sandwich upgrade patch GalaxyS2. ( possible in 2\~3 month? )
- 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