browser/devtools/webaudioeditor/test/doc_simple-context.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webaudioeditor/test/doc_simple-context.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,26 @@
     1.4 +<!-- Any copyright is dedicated to the Public Domain.
     1.5 +     http://creativecommons.org/publicdomain/zero/1.0/ -->
     1.6 +<!doctype html>
     1.7 +
     1.8 +<html>
     1.9 +  <head>
    1.10 +    <meta charset="utf-8"/>
    1.11 +    <title>Web Audio Editor test page</title>
    1.12 +  </head>
    1.13 +
    1.14 +  <body>
    1.15 +
    1.16 +    <script type="text/javascript;version=1.8">
    1.17 +      "use strict";
    1.18 +
    1.19 +      let ctx = new AudioContext();
    1.20 +      let osc = ctx.createOscillator();
    1.21 +      let gain = ctx.createGain();
    1.22 +      gain.gain.value = 0;
    1.23 +      osc.connect(gain);
    1.24 +      gain.connect(ctx.destination);
    1.25 +      osc.start(0);
    1.26 +    </script>
    1.27 +  </body>
    1.28 +
    1.29 +</html>

mercurial