2013-04-23 01:01:22 +04:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Test AudioBufferSourceNode</title>
|
|
|
|
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
|
|
<script type="text/javascript" src="webaudio.js"></script>
|
|
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<pre id="test">
|
|
|
|
<script class="testbody" type="text/javascript">
|
|
|
|
|
2013-05-09 16:45:35 +04:00
|
|
|
var gTest = {
|
|
|
|
length: 2048,
|
|
|
|
numberOfChannels: 1,
|
|
|
|
createGraph: function(context) {
|
|
|
|
var source = context.createBufferSource();
|
2013-04-23 01:01:22 +04:00
|
|
|
|
2013-05-09 16:45:35 +04:00
|
|
|
source.start(0);
|
|
|
|
source.buffer = null;
|
|
|
|
is(source.buffer, null, "Try playing back a null buffer");
|
|
|
|
return source;
|
|
|
|
},
|
|
|
|
};
|
2013-04-23 01:01:22 +04:00
|
|
|
|
2013-05-09 16:45:35 +04:00
|
|
|
runTest();
|
2013-04-23 01:01:22 +04:00
|
|
|
|
|
|
|
</script>
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|