Hello
I’m developing an app to android but keep getting crash or app not responding when playing an audio, maybe repeatedly. I already adding delay before playing each audio but it still happening.
I’m using cocos creator 2.3.4. Try to upgrade to 2.4.3 but it’s the same.
Is there a fix or maybe workaround to avoid this?
here is what I do,
playClip(clip) {
if (this.canPlayClip){
this.canPlayClip = false;
this.SFXSource.clip = clip;
this.SFXSource.play();
this.scheduleOnce(() => {
this.canPlayClip = true;
}, 0.1);
}
},
here is the log,
2020/10/13 17:35:01.262 27405 28784 Error libOpenSLES frameworks/wilhelm/src/android/AudioPlayer_to_android.cpp:886: pthread_mutex_lock_timeout_np returned 110
2020/10/13 17:35:01.363 27405 28784 Error libOpenSLES frameworks/wilhelm/src/android/AudioPlayer_to_android.cpp:886: pthread_mutex_lock_timeout_np returned 110
2020/10/13 17:35:01.363 27405 28784 Warn libOpenSLES frameworks/wilhelm/src/android/AudioPlayer_to_android.cpp:886: pthread 0x75bcf92d50 (tid 28784) sees object 0x754c1dc000 was locked by pthread 0x7561086d50 (tid 27438) at frameworks/wilhelm/src/itf/IObject.cpp:411