From 00174400da7d5e22307d284c362703ca61f64670 Mon Sep 17 00:00:00 2001 From: Knox Date: Wed, 6 Jun 2018 11:58:33 +0800 Subject: [PATCH] fixed audio bug for fireball/issues/7489 (#2810) --- cocos2d/audio/CCAudio.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cocos2d/audio/CCAudio.js b/cocos2d/audio/CCAudio.js index 3208376d92..0f58c8d641 100644 --- a/cocos2d/audio/CCAudio.js +++ b/cocos2d/audio/CCAudio.js @@ -145,14 +145,9 @@ Audio.State = { proto.mount = function (elem) { if (elem instanceof HTMLElement) { - if (CC_QQPLAY || CC_WECHATGAME) { - this._element = elem; - } - else { - this._element = document.createElement('audio'); - this._element.src = elem.src; - this._audioType = Audio.Type.DOM; - } + this._element = document.createElement('audio'); + this._element.src = elem.src; + this._audioType = Audio.Type.DOM; } else { this._element = new WebAudioElement(elem, this); this._audioType = Audio.Type.WEBAUDIO;