Skip to content

Commit c8f43e7

Browse files
Added a bit of logic and couple of TODOs to handle loop source when setting loop property value
1 parent bcda86c commit c8f43e7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,14 @@ Object.defineProperty(WebAudioSound.prototype, 'loop', {
303303
},
304304
set: function (value) {
305305
this.currentConfig.loop = value;
306+
if (this.isPlaying) {
307+
if (value) {
308+
// TODO Add loop source
309+
}
310+
else {
311+
// TODO Remove loop source
312+
}
313+
}
306314
}
307315
});
308316
module.exports = WebAudioSound;

0 commit comments

Comments
 (0)