mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
Stop and remove loopSource in stopAndRemoveBufferSource
This commit is contained in:
parent
bca40391fe
commit
d788ed3a44
1 changed files with 4 additions and 0 deletions
|
@ -144,6 +144,10 @@ var WebAudioSound = new Class({
|
||||||
this.source.stop();
|
this.source.stop();
|
||||||
this.source = null;
|
this.source = null;
|
||||||
}
|
}
|
||||||
|
if (this.loopSource) {
|
||||||
|
this.source.stop();
|
||||||
|
this.source = null;
|
||||||
|
}
|
||||||
this.startTime = 0;
|
this.startTime = 0;
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue