xorg1990
New member
Hi, habe ich was an die Augen oder warum fiert andauert JEDER Browser ein bei diesem stück code:
Für 1ms hört man ein kurzes rauschen, dann ist stille. Komisch.
- - - Aktualisiert - - -
Mit einer Bedingung get's besser. Ahhrr und ich wunder mich den Halben Tag
Code:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
<title>fft Filter</title>
<script type="text/javascript">
var audioCtx = new(window.AudioContext || window.webkitAudioContext || mozAudioContext || oAudioContext || msAudioContext)();
var processor = (audioCtx.createScriptProcessor || audioCtx.createJavaScriptNode).call(audioCtx, 16384, 1, 1);
function out(ev){
var outputBufferLe = ev.outputBuffer.getChannelData(0);
for(var ii=0;outputBufferLe.length;ii++){
outputBufferLe[ii] = Math.random()*2-1;
}
}
processor.onaudioprocess = out;
processor.connect(audioCtx.destination);
</script>
</head>
<body>
</body>
</html>
- - - Aktualisiert - - -
for(var ii=0;outputBufferLe.length;ii++){
Mit einer Bedingung get's besser. Ahhrr und ich wunder mich den Halben Tag