mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
fixed webaudio playonload bug.
This commit is contained in:
@@ -352,7 +352,7 @@ var WebAudioElement = function (buffer, audio) {
|
||||
var self = this;
|
||||
clearTimeout(this._currextTimer);
|
||||
this._currextTimer = setTimeout(function () {
|
||||
if (sys.platform === sys.WECHAT_GAME && self._context.currentTime === 0) {
|
||||
if (sys.platform !== sys.WECHAT_GAME && self._context.currentTime === 0) {
|
||||
touchPlayList.push({
|
||||
instance: self._audio,
|
||||
offset: offset,
|
||||
|
||||
Reference in New Issue
Block a user