cocos2d-x在Android平台下的音频导致的卡死

 

先挖个坑,慢慢再来填。出错信息:

frameworks/wilhelm/src/android/AudioPlayer_to_android.cpp:779: pthread 0x75f14a00 (tid 13774) sees object

 

表现为:在几乎同时调用playEffect时调用了stopAll,游戏界面一卡就很容易遇到。官方的解决方案在这里:

https://github.com/cocos2d/cocos2d-x/pull/11762/files

思路就是不立即释放openSL 对象,防止崩溃。

posted @ 2015-11-25 18:00  meteoric_cry  阅读(734)  评论(0编辑  收藏  举报