This commit is contained in:
Jakob Ketterl
2019-10-20 13:28:25 +02:00
parent 00c5467a89
commit 91b8c55de9
2 changed files with 4 additions and 6 deletions

View File

@ -2,7 +2,6 @@ class OwrxAudioProcessor extends AudioWorkletProcessor {
constructor(options){
super(options);
this.maxLength = options.processorOptions.maxLength;
this.reduceToLength = options.processorOptions.reduceToLength;
// initialize ringbuffer, make sure it aligns with the expected buffer size of 128
this.bufferSize = Math.round(sampleRate * this.maxLength / 128) * 128
this.audioBuffer = new Float32Array(this.bufferSize);