Mercurial > hg > webaudioevaluationtool
changeset 1473:df527e7b1f83
Feature #1246: Playhead starts from 0 when test stopped and restarted for synchronous loop tests.
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Wed, 02 Dec 2015 11:26:45 +0000 |
parents | 437efa061ac0 |
children | cb98283ece7e |
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; }