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) {
|
for (var i in core.musicStatus.playingSounds) {
|
||||||
var source = core.musicStatus.playingSounds[i];
|
var source = core.musicStatus.playingSounds[i];
|
||||||
try {
|
try {
|
||||||
if (source[i].stop) source[i].stop();
|
if (source.stop) source.stop();
|
||||||
else if (source[i].noteOff) source[i].noteOff();
|
else if (source.noteOff) source.noteOff();
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
main.log(e);
|
main.log(e);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user