annotate pseudo.php @ 1316:279930a008ca

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 <nickjillings@users.noreply.github.com>
date Fri, 29 Jan 2016 11:11:57 +0000
parents
children
rev   line source
nickjillings@1316 1 <?php
nickjillings@1316 2 header('Access-Control-Allow-Origin: *');
nickjillings@1316 3 header("Content-type: text/xml");
nickjillings@1316 4 $files = glob('saves/' . '*.xml');
nickjillings@1316 5 $numsaves = 0;
nickjillings@1316 6 if ( $files !== false )
nickjillings@1316 7 {
nickjillings@1316 8 $numsaves = count( $files );
nickjillings@1316 9 }
nickjillings@1316 10
nickjillings@1316 11 $files = glob('pseudo/' . '*.xml');
nickjillings@1316 12 $numtests = 0;
nickjillings@1316 13 if ( $numtests !== false )
nickjillings@1316 14 {
nickjillings@1316 15 $numtests = count( $files );
nickjillings@1316 16 }
nickjillings@1316 17
nickjillings@1316 18 $testID = ($numsaves % $numtests)-1;
nickjillings@1316 19
nickjillings@1316 20 readfile($files[$testID]);
nickjillings@1316 21 ?>