Skip to content

Commit bca4039

Browse files
If value set to loop property is the same as config value skip any further commands
1 parent c8f43e7 commit bca4039

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ Object.defineProperty(WebAudioSound.prototype, 'loop', {
302302
return this.currentConfig.loop;
303303
},
304304
set: function (value) {
305+
if (value === this.currentConfig.loop) {
306+
return;
307+
}
305308
this.currentConfig.loop = value;
306309
if (this.isPlaying) {
307310
if (value) {

0 commit comments

Comments
 (0)