2 audioContext
= new AudioContext();
3 dstNode
= audioContext
.createMediaStreamDestination();
4 mediaStream
= dstNode
.stream
;
6 // Allocate AudioNode with a reference to AudioSourceProvider owned by
7 // the media stream track.
8 srcNode
= audioContext
.createMediaStreamSource(mediaStream
);
10 // Free media stream track.
11 mediaTrack
= mediaStream
.getAudioTracks()[0];
12 mediaStream
.removeTrack(mediaTrack
);
16 // Use AudioSourceProvider owned by the media stream track, and ensure there
18 srcNode
.connect(audioContext
.destination
);