Fix stopSound bug
This commit is contained in:
parent
5eea4d33b4
commit
1747eef582
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user