free playing bgm
This commit is contained in:
parent
da16c3fb78
commit
d929f14ff2
@ -264,6 +264,9 @@ loader.prototype.freeBgm = function (name) {
|
||||
core.material.bgms[name].removeAttribute("src");
|
||||
core.material.bgms[name].load();
|
||||
core.material.bgms[name] = null;
|
||||
if (name == core.musicStatus.playingBgm) {
|
||||
core.musicStatus.playingBgm = null;
|
||||
}
|
||||
// 三秒后重新加载
|
||||
setTimeout(function () {
|
||||
core.loader.loadOneMusic(name);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user