|
@@ -1673,6 +1673,7 @@ var SoundManager = {
|
|
|
//播放之前的音频。它们是被打断过的。
|
|
|
while (this.playHistory.length) {
|
|
|
var last = this.playHistory.pop();
|
|
|
+
|
|
|
if (last.src && last.canplay(last.audio)) {
|
|
|
this.play(last.name);
|
|
|
}
|
|
@@ -1803,8 +1804,8 @@ Manage.prototype.loadAudio = function () {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- // this.switchBgmState(true); //初始设置允许播放bgm
|
|
|
- // SoundManager.initAutoPlay();
|
|
|
+ this.switchBgmState(true); //初始设置允许播放bgm
|
|
|
+ SoundManager.initAutoPlay();
|
|
|
};
|
|
|
|
|
|
Manage.prototype.switchBgmState = function (state) {
|