# HG changeset patch # User Nicholas Jillings # Date 1464253635 -3600 # Node ID fbc22422d73da39906081327e5ac0187e8bdb35d # Parent dc13bd68ea34b60f55e2ecb95d8635bbc18dab89 Initial work for #1 diff -r dc13bd68ea34 -r fbc22422d73d js/core.js --- a/js/core.js Thu May 26 09:35:07 2016 +0100 +++ b/js/core.js Thu May 26 10:07:15 2016 +0100 @@ -1676,7 +1676,7 @@ } else { this.outputGain.gain.setValueAtTime(0.0,startTime); } - this.bufferNode.start(startTime); + this.bufferNode.start(startTime,this.specification.startTime || 0, this.specification.stopTime-this.specification.startTime || this.buffer.buffer.duration); this.bufferNode.playbackStartTime = audioEngineContext.timer.getTestTime(); } }; diff -r dc13bd68ea34 -r fbc22422d73d js/specification.js --- a/js/specification.js Thu May 26 09:35:07 2016 +0100 +++ b/js/specification.js Thu May 26 10:07:15 2016 +0100 @@ -626,6 +626,8 @@ this.marker = null; this.enforce = false; this.gain = 0.0; + this.startTime = null; + this.stopTime = null; this.schema = specification.schema.getAllElementsByName('audioelement')[0];; this.parent = null; this.decode = function(parent,xml) diff -r dc13bd68ea34 -r fbc22422d73d xml/test-schema.xsd --- a/xml/test-schema.xsd Thu May 26 09:35:07 2016 +0100 +++ b/xml/test-schema.xsd Thu May 26 10:07:15 2016 +0100 @@ -184,6 +184,20 @@ + + + + + + + + + + + + + +