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

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

mercurial