Mercurial > hg > webaudioevaluationtool
comparison interfaces/AB.js @ 496:cb348f6208b2 Dev_main
All interfaces support comment boxes. Comment box identification matches presented tag (for instance, AB will be Comment on fragment A, rather than 1). Tighter buffer loading protocol, audioObjects register with the buffer rather than checking for buffer existence (which can be buggy depending on the buffer state). Buffers now have a state to ensure exact location in loading chain (downloading, decoding, LUFS, ready).
author | Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk> |
---|---|
date | Fri, 29 Jan 2016 11:11:57 +0000 |
parents | 159b87e5de67 |
children | fbba14d4e21c |
comparison
equal
deleted
inserted
replaced
495:305742b40ddc | 496:cb348f6208b2 |
---|---|
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 // Populate the comparitor object | 151 // Populate the comparitor object |
152 interfaceContext.comparitor = new Comparitor(audioHolderObject); | 152 interfaceContext.comparitor = new Comparitor(audioHolderObject); |
153 if (audioHolderObject.showElementComments) | |
154 { | |
155 var commentHolder = document.createElement('div'); | |
156 commentHolder.id = 'commentHolder'; | |
157 document.getElementById('testContent').appendChild(commentHolder); | |
158 // Generate one comment box per presented page | |
159 for (var element of audioEngineContext.audioObjects) | |
160 { | |
161 interfaceContext.createCommentBox(element); | |
162 } | |
163 interfaceContext.showCommentBoxes(commentHolder,true); | |
164 } | |
153 resizeWindow(null); | 165 resizeWindow(null); |
154 } | 166 } |
155 | 167 |
156 function Comparitor(audioHolderObject) | 168 function Comparitor(audioHolderObject) |
157 { | 169 { |