blob: 2ead02af4eb39f3bd6f9a0a84f7fa77335eb15d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>
function boom()
{
var ac = new window.AudioContext();
var _ChannelMergerNode = ac.createChannelMerger(4);
var _MediaStreamAudioDestinationNode = ac.createMediaStreamDestination();
var _MediaStream = _MediaStreamAudioDestinationNode.stream;
var _MediaStreamAudioSourceNode = ac.createMediaStreamSource(_MediaStream);
_ChannelMergerNode.connect(_MediaStreamAudioDestinationNode, 0, 0);
_MediaStreamAudioSourceNode.connect(_ChannelMergerNode, 0, 0);
}
</script>
</head>
<body onload="boom();"></body>
</html>
|