-
Notifications
You must be signed in to change notification settings - Fork 11
/
index-siddmp-reng.html
63 lines (57 loc) · 2.88 KB
/
index-siddmp-reng.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
59
60
61
62
63
<!DOCTYPE HTML>
<html>
<head>
</head>
<body>
<h1>This is broken. It's left here until we bring back resid-ng</h1>
<div>
Click a file to play. Works in Firefox/Chrome on desktop only (for now)<br>
<a href="javascript:void(play('sid/dmp/Autumn.dmp'))">Autumn.dmp</a> |
<a href="javascript:void(play('sid/dmp/Monty.dmp'))">Monty.dmp</a> |
<a href="javascript:void(play('sid/dmp/Robocop3.dmp'))">Robocop3.dmp</a> |
<a href="javascript:void(play('sid/dmp/Mr_Marvellous.dmp'))">Mr_Marvellous.dmp</a> |
<a href="javascript:void(play('sid/dmp/Lightforce.dmp'))">Lightforce.dmp</a> |
<a href="javascript:void(play('sid/dmp/Speedball.dmp'))">Speedball.dmp</a> |
<a href="javascript:void(play('sid/dmp/Super_Mario_Land.dmp'))">Super_Mario_Land.dmp</a> |
<a href="javascript:void(play('sid/dmp/Cybernoid.dmp'))">Cybernoid.dmp</a> |
<a href="javascript:void(play('sid/dmp/Batman2.dmp'))">Batman2.dmp</a> |
<a href="javascript:void(play('sid/dmp/Nemesis.dmp'))">Nemesis.dmp</a> |
<a href="javascript:void(play('sid/dmp/Enforcer.dmp'))">Enforcer.dmp</a>
</div>
<hr/>
<div id="status">
Not Loaded
</div>
<hr/>
<div>
<a href="javascript:void(sidDmpPlayer.play())">PLAY</a>
<a href="javascript:void(sidDmpPlayer.stop())">STOP</a>
</div>
<div id="err">
</div>
<script src="js/stream.js"></script>
<script src="js/jsxcompressor.js"></script>
<script src="js/sidsynth.js"></script>
<script src="js/resid-ng.js"></script>
<script src="js/sid6510.js"></script>
<script src="js/siddmpplayer.js"></script>
<script src="js/pico.dev.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
function play(file) {
sidDmpPlayer = new SidDmpPlayer( { quality: SIDFactory.quality.good });
$("#status").text("Loading: " + file);
Stream.loadRemoteFile(file, function(data) {
sidDmpPlayer.loadFileFromData(data)
$("#status").text("Loaded: " + file);
})
}
function addStatus(msg) {
jQuery("#err").append("<br/>" + msg);
};
window.onerror = function(errorMsg, url, lineNumber) {
addStatus("JAVASCRIPT ERROR: " + errorMsg + " (" + url + ", line " + lineNumber + ")");
}
</script>
</body>
</html>