Mercurial > hg > webaudioevaluationtool
changeset 500:ee23bf531ec4 Dev_main
Bug #1395: Test timer is reset on each new test page.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Tue, 02 Feb 2016 11:03:01 +0000 |
parents | 841de347591e |
children | 9a8ede168aba |
files | core.js |
diffstat | 1 files changed, 4 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/core.js Mon Feb 01 10:38:54 2016 +0000 +++ b/core.js Tue Feb 02 11:03:01 2016 +0000 @@ -1159,7 +1159,7 @@ return this.audioObjects[audioObjectId]; }; - this.newTestPage = function(store) { + this.newTestPage = function(audioHolderObject,store) { this.pageStore = store; this.state = 0; this.audioObjectsReady = false; @@ -1169,6 +1169,8 @@ this.buffers[i].users = []; } this.audioObjects = []; + this.timer = new timer(); + this.loopPlayback = audioHolderObject.loop; }; this.checkAllPlayed = function() { @@ -2309,10 +2311,7 @@ this.newPage = function(audioHolderObject,store) { - audioEngineContext.newTestPage(store); - audioEngineContext.loopPlayback = audioHolderObject.loop; - // Delete any previous audioObjects associated with the audioEngine - audioEngineContext.audioObjects = []; + audioEngineContext.newTestPage(audioHolderObject,store); interfaceContext.deleteCommentBoxes(); interfaceContext.deleteCommentQuestions(); loadTest(audioHolderObject,store);