gecko/content/media/test/crashtests/874915.html
Ehsan Akhgari 2a4cb3efa4 Bug 874915 - Stop the AudioBufferSourceNode if the offset is no longer valid after setting a new buffer; r=roc
--HG--
extra : rebase_source : 0b179aab5ddb1ffd4ab2aeb8366b36975c949187
2013-05-23 07:50:48 -04:00

24 lines
718 B
HTML

<script>
var Context0= new AudioContext()
var BufferSource6=Context0.createBufferSource();
setInterval(function(){
BufferSource6.buffer=function(){
var length=11283;
var Buffer=Context0.createBuffer(1,length,Context0.sampleRate);
var bufferData= Buffer.getChannelData(0);
for (var i = 0; i < length; ++i) { bufferData[i] = Math.sin(i*(624))};
return Buffer;
}();
},0)
BufferSource6.start(0.15831333969254047,0.23571860056836158,0.529235512483865);
BufferSource6.buffer=function(){
var length=48517;
var Buffer=Context0.createBuffer(1,length,Context0.sampleRate);
var bufferData= Buffer.getChannelData(0);
for (var i = 0; i < length; ++i) { bufferData[i] = Math.sin(i*(365))};
return Buffer;
}();
</script>