Skip to content

Commit 7b25ebc

Browse files
committed
Merge pull request cocos2d#3278 from pandamicro/develop
Fix audio undefined issue
2 parents 02c9284 + 51d3be1 commit 7b25ebc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cocos2d/audio/CCAudio.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ cc.Audio.WebAudio.prototype = {
388388
}
389389

390390
audio = new cc.Audio(realUrl);
391+
cc.loader.cache[url] = audio;
391392
this.loadAudioFromExtList(realUrl, typeList, audio, cb);
392393
return audio;
393394
},

0 commit comments

Comments
 (0)