Docs for Phaser.Sound.BaseSoundManager#play

Always adds a new sound
This commit is contained in:
samme 2020-01-03 13:36:00 -08:00
parent b28f45b609
commit 974ffd93ee

View file

@ -227,8 +227,9 @@ var BaseSoundManager = new Class({
},
/**
* Enables playing sound on the fly without the need to keep a reference to it.
* Sound will auto destroy once its playback ends.
* Adds a new sound to the sound manager and plays it.
* The sound will be automatically removed (destroyed) once playback ends.
* This lets you play a new sound on the fly without the need to keep a reference to it.
*
* @method Phaser.Sound.BaseSoundManager#play
* @listens Phaser.Sound.Events#COMPLETE