From 344aec2b86000ef94984c5065a7b1e286cbe1735 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Tue, 5 Dec 2017 19:40:25 +0100 Subject: [PATCH] Added resetConfig method where seek config, and later delay config, are reset --- v3/src/sound/BaseSound.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/v3/src/sound/BaseSound.js b/v3/src/sound/BaseSound.js index 4c171a108..c19444604 100644 --- a/v3/src/sound/BaseSound.js +++ b/v3/src/sound/BaseSound.js @@ -260,6 +260,13 @@ var BaseSound = new Class({ this.detune = this.currentConfig.detune; // TODO assign other config values to buffer source }, + /** + * @protected + */ + resetConfig: function () { + this.currentConfig.seek = 0; + // TODO add delay + }, fadeTo: function (volume, duration) { return null; },