Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html class="reftest-wait"> |
michael@0 | 3 | <script> |
michael@0 | 4 | var Context0= new window.OfflineAudioContext(15,12119,44100) |
michael@0 | 5 | var BufferSource1=Context0.createBufferSource(); |
michael@0 | 6 | var Gain0=Context0.createGain(); |
michael@0 | 7 | var Panner0=Context0.createPanner(); |
michael@0 | 8 | Context0.listener.setPosition(29,135,158); |
michael@0 | 9 | |
michael@0 | 10 | BufferSource1.connect(Gain0); |
michael@0 | 11 | |
michael@0 | 12 | BufferSource1.buffer=function(){ |
michael@0 | 13 | var channels=3; |
michael@0 | 14 | var length=53325; |
michael@0 | 15 | var Buffer=Context0.createBuffer(channels,length,Context0.sampleRate); |
michael@0 | 16 | for(var y=0;y<channels;y++){ |
michael@0 | 17 | var bufferData= Buffer.getChannelData(y); |
michael@0 | 18 | for (var i = 0; i < length; ++i) { |
michael@0 | 19 | bufferData[i] = i*(270); |
michael@0 | 20 | } |
michael@0 | 21 | }; |
michael@0 | 22 | return Buffer; |
michael@0 | 23 | }(); |
michael@0 | 24 | |
michael@0 | 25 | Gain0.connect(Panner0); |
michael@0 | 26 | Panner0.panningModel="equalpower"; |
michael@0 | 27 | |
michael@0 | 28 | |
michael@0 | 29 | setTimeout(function(){ |
michael@0 | 30 | document.documentElement.removeAttribute("class"); |
michael@0 | 31 | },500) |
michael@0 | 32 | |
michael@0 | 33 | </script> |