mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2025-01-18 05:30:06 -05:00
Remove leftover references to adrum and note player
This commit is contained in:
parent
d31494fed6
commit
dce5316551
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