mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-03 11:35:49 -05:00
Merge pull request #60 from LLK/bugfix/safari-stop
Safely stop sounds in safari
This commit is contained in:
commit
3cad765e76
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class SoundPlayer {
|
|||
* Stop the sound
|
||||
*/
|
||||
stop () {
|
||||
if (this.bufferSource) {
|
||||
if (this.bufferSource && this.isPlaying) {
|
||||
this.bufferSource.stop();
|
||||
}
|
||||
this.isPlaying = false;
|
||||
|
|
Loading…
Reference in a new issue