Merge pull request #66 from paulkaplan/fix-stop-all-error

Remove leftover references to drum and note player
This commit is contained in:
Paul Kaplan 2017-11-22 09:59:52 -05:00 committed by GitHub
commit 44879d5965
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}
/**