added startTime field to WebAudioSound class

This commit is contained in:
Pavle Goloskokovic 2017-11-17 14:57:57 +01:00
parent 7a4939d435
commit 0d1fb8a15e

View file

@ -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) {