# HG changeset patch # User Nicholas Jillings # Date 1449055605 0 # Node ID 1640c08ae2e80b3fa60e2685005380b8e50091e9 # Parent 84db2932ef02d6e9b5e457f6357a86e98d80a659 Feature #1246: Playhead starts from 0 when test stopped and restarted for synchronous loop tests. diff -r 84db2932ef02 -r 1640c08ae2e8 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; }