Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: third_party/WebKit/LayoutTests/webaudio/audioworklet/audioworklet-import.html

Issue 2793593002: AudioWorklet prototype
Patch Set: Rebase after ThreadedWorkletMessaginProxy change Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6 <h1>AudioWorklet Test</h1>
7 <script>
8 let context;
9 window.audioWorklet.addModule('processors.js').then(() => {
10 context = new AudioContext();
11
12 let osc = new OscillatorNode(context);
13 let bypass = new AudioWorkletNode(context, 'bypass');
14 let noise = new AudioWorkletNode(context, 'noise');
15 let onepole = new AudioWorkletNode(context, 'onepole');
16
17 osc.type = 'sawtooth';
18 osc.connect(bypass).connect(onepole);
19 osc.connect(noise).connect(onepole);
20 onepole.connect(context.destination);
21 osc.start();
22 });
23 </script>
24 </body>
25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698