mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Added pause method docs
This commit is contained in:
parent
be48058853
commit
4c90ef01bd
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue