Skip to content

Commit

Permalink
Add loopback html test
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Jul 2, 2020
1 parent 4a3fbea commit 06bacf3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/html/media_stream_audio_nodes_loopback.html
@@ -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>

0 comments on commit 06bacf3

Please sign in to comment.