annotate 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
rev   line source
n@1116 1 <?php
n@1116 2 header('Access-Control-Allow-Origin: *');
n@1116 3 header("Content-type: text/xml");
n@1116 4 $files = glob('saves/' . '*.xml');
n@1116 5 $numsaves = 0;
n@1116 6 if ( $files !== false )
n@1116 7 {
n@1116 8 $numsaves = count( $files );
n@1116 9 }
n@1116 10
n@1116 11 $files = glob('pseudo/' . '*.xml');
n@1116 12 $numtests = 0;
n@1116 13 if ( $numtests !== false )
n@1116 14 {
n@1116 15 $numtests = count( $files );
n@1116 16 }
n@1116 17
n@1116 18 $testID = ($numsaves % $numtests)-1;
n@1116 19
n@1116 20 readfile($files[$testID]);
n@1116 21 ?>