Mercurial > hg > webaudioevaluationtool
changeset 836:1640c08ae2e8
Feature #1246: Playhead starts from 0 when test stopped and restarted for synchronous loop tests.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Wed, 02 Dec 2015 11:26:45 +0000 |
parents | 84db2932ef02 |
children | 31d02b334ba8 |
files | core.js |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/core.js Fri Nov 27 15:35:18 2015 +0000 +++ b/core.js Wed Dec 02 11:26:45 2015 +0000 @@ -968,7 +968,7 @@ if (this.bufferNode != undefined) { if (this.bufferNode.loop == true) { if (audioEngineContext.status == 1) { - return time%this.buffer.duration; + return (time-this.metric.listenStart)%this.buffer.duration; } else { return 0; }