mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
Merge pull request #66 from paulkaplan/fix-stop-all-error
Remove leftover references to drum and note player
This commit is contained in:
commit
44879d5965
1 changed files with 1 additions and 7 deletions
|
@ -90,19 +90,13 @@ class AudioPlayer {
|
|||
}
|
||||
|
||||
/**
|
||||
* Stop all sounds, notes and drums that are playing
|
||||
* Stop all sounds that are playing
|
||||
*/
|
||||
stopAllSounds () {
|
||||
// stop all active sound players
|
||||
for (const soundId in this.activeSoundPlayers) {
|
||||
this.activeSoundPlayers[soundId].stop();
|
||||
}
|
||||
|
||||
// stop all instruments
|
||||
this.audioEngine.instrumentPlayer.stopAll();
|
||||
|
||||
// stop drum notes
|
||||
this.audioEngine.drumPlayer.stopAll();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue