Mercurial > hg > webaudioevaluationtool
comparison docs/ProjectSpecificationDocument.tex @ 1692:a4be9ea53245
Updated the ProjectSpecificationDocument to reflect track sample rate detection
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Thu, 26 Mar 2015 10:35:29 +0000 |
parents | 1e88d042624f |
children | c1d941d405f2 |
comparison
equal
deleted
inserted
replaced
1691:7148c89ff426 | 1692:a4be9ea53245 |
---|---|
1 \documentclass{article} | 1 \documentclass{article} |
2 | 2 |
3 \usepackage[margin=2cm]{geometry} | 3 \usepackage[margin=2cm]{geometry} |
4 \usepackage{listings} | |
4 | 5 |
5 \begin{document} | 6 \begin{document} |
6 | 7 |
7 \large APE Browser Tool - Project Specification Document | 8 \large APE Browser Tool - Project Specification Document |
8 | 9 |
42 There should be one tracks tag, inside which each track is specified as children. The track tag can help to generalise certain objects. | 43 There should be one tracks tag, inside which each track is specified as children. The track tag can help to generalise certain objects. |
43 | 44 |
44 \subsection{Attributes} | 45 \subsection{Attributes} |
45 \begin{itemize} | 46 \begin{itemize} |
46 \item \texttt{hostURL} - Optional. If all tracks are hosted from the same folder on a server, you can put in the lead here. For instance, if loading http://test.com/tracks/track1.wav and http://test.com/tracks/track2.wav, this could equal http://test.com/tracks/ and the url attribute in the track tag can be track1.wav or track2.wav. Equally http://test.com/ and then using tracks/track1.wav and tracks/track2.wav is valid. | 47 \item \texttt{hostURL} - Optional. If all tracks are hosted from the same folder on a server, you can put in the lead here. For instance, if loading http://test.com/tracks/track1.wav and http://test.com/tracks/track2.wav, this could equal http://test.com/tracks/ and the url attribute in the track tag can be track1.wav or track2.wav. Equally http://test.com/ and then using tracks/track1.wav and tracks/track2.wav is valid. |
48 \item \texttt{sampleRate} - Optional. If your test requires a specific sample rate, this should be set to the desired sample rate in Hertz. This does not set the browser to the correct sample rate, but allows for checking if the sample rates match. | |
49 \item \texttt{sampleRateExplicit} - Optional. A true/false to determine if the sample rate given in the attribute \texttt{sampleRate} must be matched by the system. If the web audio API does not match, a browser alert is called and the rest of the interface loading is discarded. Media files are also not downloaded until this check can be corrected. | |
47 \end{itemize} | 50 \end{itemize} |
48 | 51 |
49 \subsection{Elements} | 52 \subsection{Elements} |
50 Contain the track tags. | 53 Contain the track tags. |
51 | 54 |
58 \item \texttt{url} - Mandatory. Contain the full URL to the track. If the Tracks tag hostURL is set, concatenate this tag with the hostURL attribute to obtain the full URL. | 61 \item \texttt{url} - Mandatory. Contain the full URL to the track. If the Tracks tag hostURL is set, concatenate this tag with the hostURL attribute to obtain the full URL. |
59 \end{itemize} | 62 \end{itemize} |
60 | 63 |
61 \section{Example} | 64 \section{Example} |
62 | 65 |
63 Here is an example XML structure. Apologies for LATEX formatting! | 66 Here is an example XML structure |
64 | 67 |
65 \texttt{ | 68 \begin{lstlisting} |
66 <?xml version="1.0" encoding="UTF-8"?> \\ | 69 <?xml version="1.0" encoding="utf-8"?> |
67 <BrowserEvalProjectDocument> \\ | 70 <BrowserEvalProjectDocument> |
68 <setup interface="APE" projectReturn="http://project.return.url/goes/here" />\\ | 71 <setup interface="APE" projectReturn="null" /> |
69 <tracks hostURL="http://apeTest.qmul.ac.uk/tracks/"> \\ | 72 <tracks hostURL="example_eval/" sampleRate="44100" |
70 <track url = "track1.wav"/> \\ | 73 sampleRateExplicit="true"> |
71 <track url = "track2.wav"/> \\ | 74 <track url="0.wav"/> |
72 <track url = "track3.wav"/> \\ | 75 <track url="1.wav"/> |
73 </tracks> \\ | 76 <track url="2.wav"/> |
77 <track url="3.wav"/> | |
78 <track url="4.wav"/> | |
79 <track url="5.wav"/> | |
80 <track url="6.wav"/> | |
81 <track url="7.wav"/> | |
82 <track url="8.wav"/> | |
83 <track url="9.wav"/> | |
84 <track url="10.wav"/> | |
85 </tracks> | |
74 </BrowserEvalProjectDocument> | 86 </BrowserEvalProjectDocument> |
75 } | 87 \end{lstlisting} |
88 | |
76 | 89 |
77 | 90 |
78 \end{document} | 91 \end{document} |