mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 06:28:30 +00:00
Ignoring pause calls on delayed playing sound if delay has not yet elapsed
This commit is contained in:
parent
1993aabbf4
commit
a17ffeb5b9
1 changed files with 3 additions and 0 deletions
|
@ -85,6 +85,9 @@ var WebAudioSound = new Class({
|
|||
return this;
|
||||
},
|
||||
pause: function () {
|
||||
if (this.manager.context.currentTime < this.startTime) {
|
||||
return false;
|
||||
}
|
||||
if (!BaseSound.prototype.pause.call(this)) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue