Fix stopSound bug

This commit is contained in:
ckcz123 2019-03-31 15:01:43 +08:00
parent 5eea4d33b4
commit 1747eef582

View File

@ -2203,8 +2203,8 @@ control.prototype.stopSound = function () {
for (var i in core.musicStatus.playingSounds) {
var source = core.musicStatus.playingSounds[i];
try {
if (source[i].stop) source[i].stop();
else if (source[i].noteOff) source[i].noteOff();
if (source.stop) source.stop();
else if (source.noteOff) source.noteOff();
}
catch (e) {
main.log(e);