content/media/test/crashtests/877527.html

Fri, 16 Jan 2015 04:50:19 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 04:50:19 +0100
branch
TOR_BUG_9701
changeset 13
44a2da4a2ab2
permissions
-rw-r--r--

Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32

     1 <script>
     2 try { o1 = new window.AudioContext(2, 5, 44100); } catch(e) { }
     3 try { o2 = o1.createChannelMerger(1); } catch(e) { }
     4 try { o3 = o1.createDelay(10); } catch(e) { }
     5 try { o4 = o1.createBuffer(2, 2048, 8000); } catch(e) { }
     6 try { o5 = o1.createPanner(); } catch(e) { }
     7 try { o6 = o1.createBufferSource(); } catch(e) { }
     8 try { o7 = (function() {
     9 var buf = o1.createBuffer(1, 50000, o1.sampleRate);
    10 for(var j=0; j<1; ++j) {
    11 for(var i=0; i<50000; ++i) { buf.getChannelData(j)[i] = Math.sin(i * (9.8));}
    12 }
    13 return buf;
    14 })(); } catch(e) { }
    15 try { o6.buffer = o7; } catch(e) { }
    16 try { o6.connect(o5); } catch(e) { }
    17 try { o5.connect(o1.destination); } catch(e) { }
    18 try { o1.listener.speedOfSound = 0.0000019073486328125; } catch(e) { }
    19 try { o6.loop = true; } catch(e) { }
    20 try { o8 = (function() {
    21 var buf = o1.createBuffer(2, 1000, o1.sampleRate);
    22 for(var j=0; j<2; ++j) {
    23 for(var i=0; i<1000; ++i) { buf.getChannelData(j)[i] = Math.sin(i * (1));}
    24 }
    25 return buf;
    26 })(); } catch(e) { }
    27 try { o6.buffer = o7; } catch(e) { }
    28 try { o6.connect(o5); } catch(e) { }
    29 try { o5.connect(o1.destination); } catch(e) { }
    30 try { o6.loopEnd = 1.4901161193847656e-8; } catch(e) { }
    31 try { o6.connect(o1.destination); } catch(e) { }
    32 try { o6.buffer = o8; } catch(e) { }
    33 try { o5.setPosition(0.36, o1.destination.context.destination.channelCountMode, o1.destination.context.destination.channelInterpretation) } catch(e) { }
    34 try { o2.channelCountMode = 'explicit'; } catch(e) { }
    35 try { o1.listener.speedOfSound = 4; } catch(e) { }
    36 try { o1.startRendering(); } catch(e) { }
    37 </script>

mercurial