Mercurial > hg > webaudioevaluationtool
diff pseudo.php @ 1116:c44fbf72f7f2
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 | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pseudo.php Fri Jan 29 11:11:57 2016 +0000 @@ -0,0 +1,21 @@ +<?php + header('Access-Control-Allow-Origin: *'); + header("Content-type: text/xml"); + $files = glob('saves/' . '*.xml'); + $numsaves = 0; + if ( $files !== false ) + { + $numsaves = count( $files ); + } + + $files = glob('pseudo/' . '*.xml'); + $numtests = 0; + if ( $numtests !== false ) + { + $numtests = count( $files ); + } + + $testID = ($numsaves % $numtests)-1; + + readfile($files[$testID]); +?> \ No newline at end of file