Added pause method docs

This commit is contained in:
Pavle Goloskokovic 2018-01-07 22:24:02 +01:00
parent be48058853
commit 4c90ef01bd

View file

@ -137,6 +137,12 @@ var WebAudioSound = new Class({
this.events.dispatch(new SoundEvent(this, 'SOUND_PLAY'));
return this;
},
/**
* Pauses the sound.
*
* @method Phaser.Sound.WebAudioSound#pause
* @returns {boolean} Whether the sound was paused successfully.
*/
pause: function () {
if (this.manager.context.currentTime < this.startTime) {
return false;