[adapters] 完成音频系统的多线程支持

This commit is contained in:
SmallMain
2024-10-31 17:16:22 +08:00
parent b88403f005
commit 195434e30e
4 changed files with 189 additions and 29 deletions

View File

@@ -25,7 +25,9 @@ export default class Audio extends HTMLAudioElement {
this.readyState = HAVE_NOTHING
const innerAudioContext = wx.createInnerAudioContext()
const innerAudioContext = CC_WORKER_AUDIO_SYSTEM
? new WorkerAudio()
: wx.createInnerAudioContext()
_innerAudioContextMap[this._$sn] = innerAudioContext