mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2025-10-09 22:05:24 +00:00
[adapters] 完成音频系统的多线程支持
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user