Open dumganhar opened 7 years ago
Will this bug fixed at 3.17 version?
confirm bug on cocos2d-x version 3.16 too
This bug will still on 3.17.1. I use schedule function delay play sound. Temporarily circumvented this problem.
node->scheduleOnce([=](float time){
AudioEngine::play2d(filePath);
}, 0.01, "play_sound");
I still face problems after putting delay. Anyone has the solution?
I also found the same problem.. How can I not solve this? It's a problem because the game freezes. It's a really big problem.
播放的时候会返回一个Id,记录下这个id开始播放的时间,销毁的时候判断一下这个时间是否超过比如0.5秒,如果超过则销毁,否则延迟到0.5秒后再销毁就可以了
自己解码播放就可以避免这个问题了
Steps to Reproduce:
Result:
It's a bug of Android System. Please also refer to http://grokbase.com/t/gg/android-ndk/156tayqf1c/opensl-deadlock-issue http://webmail.dev411.com/p/gg/android-ndk/154fhnm2ce/why-does-opensl-destroy-function-block-forever-on-some-devices https://github.com/cocos2d/cocos2d-x/issues/12479 https://github.com/cocos2d/cocos2d-x/pull/11762