# HG changeset patch # User Nicholas Jillings # Date 1449055605 0 # Node ID df527e7b1f83966de814dad1b4a51911b766767a # Parent 437efa061ac0064df331c009c5bdeeaaf96c176c Feature #1246: Playhead starts from 0 when test stopped and restarted for synchronous loop tests. diff -r 437efa061ac0 -r df527e7b1f83 core.js --- 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; }