mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Added destroy method docs
This commit is contained in:
parent
457789df64
commit
a4b243cb09
1 changed files with 6 additions and 0 deletions
|
@ -319,6 +319,12 @@ var WebAudioSound = new Class({
|
|||
this.events.dispatch(new SoundEvent(this, 'SOUND_LOOP'));
|
||||
}
|
||||
},
|
||||
/**
|
||||
* Calls Phaser.Sound.BaseSound#destroy method
|
||||
* and cleans up all Web Audio API related stuff.
|
||||
*
|
||||
* @method Phaser.Sound.WebAudioSound#destroy
|
||||
*/
|
||||
destroy: function () {
|
||||
BaseSound.prototype.destroy.call(this);
|
||||
this.audioBuffer = null;
|
||||
|
|
Loading…
Reference in a new issue