mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add loopback html test
This commit is contained in:
parent
19f5edf194
commit
3b3e2e0e38
1 changed files with 12 additions and 0 deletions
12
tests/html/media_stream_audio_nodes_loopback.html
Normal file
12
tests/html/media_stream_audio_nodes_loopback.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<script type="text/javascript">
|
||||
let a1 = new AudioContext();
|
||||
let osc1 = a1.createOscillator();
|
||||
let dest1 = a1.createMediaStreamDestination();
|
||||
osc1.connect(dest1);
|
||||
osc1.start(0);
|
||||
|
||||
let a2 = new AudioContext();
|
||||
let source2 = a2.createMediaStreamSource(dest1.stream);
|
||||
source2.connect(a2.destination);
|
||||
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue