Skip to content

Commit fb29afe

Browse files
Preventing resume calls on delayed sounds
1 parent c1b24c4 commit fb29afe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ var HTML5AudioSound = new Class({
7676
return true;
7777
},
7878
resume: function () {
79+
if (this.startTime > 0) {
80+
return false;
81+
}
7982
if (!BaseSound.prototype.resume.call(this)) {
8083
return false;
8184
}

0 commit comments

Comments
 (0)