-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
58 lines (49 loc) · 1.51 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Device Latency</title>
<link href="./vendor/c3-0.4.10/c3.min.css" rel="stylesheet" type="text/css">
<style>
html {
font-family: Arial;
}
button {
height: 50px;
width: 250px
}
label {
font-size: 1.5em;
}
</style>
<script src="./vendor/d3.min.js" charset="utf-8"></script>
<script src="./vendor/c3-0.4.10/c3.min.js"></script>
<script src="./math.js"></script>
</head>
<body>
<h1>Device Latency</h1>
<button id="init">Init AudioContext on iOS</button>
<br>
<audio src="gimme.mp3" id="sampleBis" auto controls></audio>
<br>
<button id="play">Play</button>
<br>
<button id="stop">Stop</button>
<br>
<button id="time">Collect currentTimes</button>
<br>
<label><input type="checkbox" id="collect">Launch collect</label>
<table>
<tr><td>HTML5 audio data</td><td id="evt2"></td></tr>
<tr><td>currentTime Web Audio API</td><td id="val2"></td></tr>
<tr><td>currentTime HTML5</td><td id="val1">None</td></tr>
<tr><td>currentTime Web Audio API Relative</td><td id="val4">None</td></tr>
<tr><td>Diff CurrentTime HTML5 Web vs. Audio API</td><td id="val5">None</td></tr>
<tr><td>Average</td><td id="val6"></td></tr>
<tr><td>Standard deviation</td><td id="val7"></td></tr>
</table>
<div id="chart"></div>
<script src="app.js"></script>
</body>
</html>