mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
6f26d6a634
Calling Stop() here is not quite enough, because web content might call stop() again with a non-zero argument, which overrides what we do here.
24 lines
735 B
HTML
24 lines
735 B
HTML
<script>
|
|
var Context0= new AudioContext()
|
|
var BufferSource4=Context0.createBufferSource();
|
|
BufferSource4.start(0.05386466556228697,0.397192713804543,0.48810303467325866);
|
|
|
|
BufferSource4.buffer=function(){
|
|
var length=109076;
|
|
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*(370))};
|
|
return Buffer;
|
|
}();
|
|
|
|
BufferSource4.buffer=function(){
|
|
var length=19339;
|
|
var Buffer=Context0.createBuffer(1,length,53362);
|
|
var bufferData= Buffer.getChannelData(0);
|
|
for (var i = 0; i < length; ++i) { bufferData[i] = Math.sin(i*(-0.16235407581552863))};
|
|
return Buffer;
|
|
}();
|
|
|
|
BufferSource4.stop(0.46482366253621876);
|
|
</script>
|