zhihmeng at February 7th, 2012 04:06 — #1
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.
zhangxm at February 8th, 2012 22:06 — #2
But OpenSL is available since android2.3.
zhihmeng at February 8th, 2012 22:25 — #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 ?
zhangxm at February 9th, 2012 05:20 — #4
Yes, I think it is worth doing it.
kodok88 at March 4th, 2012 23:52 — #5
I checked issue a three month ago in other library.
OpenSL solve the problem.
zhangxm at March 5th, 2012 01:04 — #6
kodok88 at March 5th, 2012 01:21 — #7
Using soundpool in galaxyS2 has a problem. Phone freezes(not respond) sometimes. ( in soundpool.play function )
Chainging soundpool to OpenSL solve the problem.
kodok88 at March 5th, 2012 01:21 — #8
Sorry to my english….. T.T
zhihmeng at March 5th, 2012 01:22 — #9
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.
kodok88 at March 5th, 2012 01:36 — #10
- 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 )
jcb42 at March 16th, 2012 09:54 — #11
is someone start something about that ? or a date for 1.0.3 path ? (or just a date for openSL patch ?)
zhihmeng at August 8th, 2012 05:44 — #12
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