From 0d1fb8a15ecd22c312b72df79457942ab964b6fc Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Fri, 17 Nov 2017 14:57:57 +0100 Subject: [PATCH] added startTime field to WebAudioSound class --- v3/src/sound/webaudio/WebAudioSound.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/v3/src/sound/webaudio/WebAudioSound.js b/v3/src/sound/webaudio/WebAudioSound.js index 8f224c092..c473faadb 100644 --- a/v3/src/sound/webaudio/WebAudioSound.js +++ b/v3/src/sound/webaudio/WebAudioSound.js @@ -32,6 +32,13 @@ var WebAudioSound = new Class({ * @property {GainNode} volumeNode */ this.volumeNode = manager.context.createGain(); + /** + * The time the previous playback started at based on + * BaseAudioContext.currentTime value. + * + * @property {number} startTime + */ + this.startTime = 0; this.muteNode.connect(this.volumeNode); this.volumeNode.connect(manager.destination); if (config === void 0) {