Mercurial > hg > webaudioevaluationtool
diff ape.js @ 381:b1cb28c63a19 Dev_main
Bugs #1454 #1391 buffers are pooled and loaded at the begining. Page Save not interface specific.
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Mon, 07 Dec 2015 18:42:36 +0000 |
parents | f49339868324 |
children | 38439b21d369 |
line wrap: on
line diff
--- a/ape.js Mon Dec 07 18:34:26 2015 +0000 +++ b/ape.js Mon Dec 07 18:42:36 2015 +0000 @@ -642,32 +642,7 @@ function pageXMLSave(store, testXML) { + // MANDATORY // Saves a specific test page - var xmlDoc = store; - // Check if any session wide metrics are enabled - - var commentShow = testXML.elementComments; - - var metric = document.createElement('metric'); - if (audioEngineContext.metric.enableTestTimer) - { - var testTime = document.createElement('metricResult'); - testTime.id = 'testTime'; - testTime.textContent = audioEngineContext.timer.testDuration; - metric.appendChild(testTime); - } - xmlDoc.appendChild(metric); - var audioObjects = audioEngineContext.audioObjects; - for (var i=0; i<audioObjects.length; i++) - { - var audioElement = audioEngineContext.audioObjects[i].exportXMLDOM(); - audioElement.setAttribute('presentedId',i); - xmlDoc.appendChild(audioElement); - } - - $(interfaceContext.commentQuestions).each(function(index,element){ - var node = element.exportXMLDOM(); - xmlDoc.appendChild(node); - }); - store = xmlDoc; + // You can use this space to add any extra nodes to your XML saves } \ No newline at end of file