diff --git a/src/domain/worklets/AudioOutputProcessor.ts b/src/domain/worklets/AudioOutputProcessor.ts index f8b6caac..57575156 100644 --- a/src/domain/worklets/AudioOutputProcessor.ts +++ b/src/domain/worklets/AudioOutputProcessor.ts @@ -58,6 +58,7 @@ class AudioOutputProcessor extends AudioWorkletProcessor { // If we've reached the maximum buffer size, skip some of the audio blocks. if (this._audioBuffer.length > this.MAX_AUDIO_BUFFER_LENGTH) { + // console.log("AudioOutputProcessor: Overflowed", this.MAX_AUDIO_BUFFER_LENGTH); while (this._audioBuffer.length > this.MIN_AUDIO_BUFFER_LENGTH) { this._audioBuffer.shift(); } @@ -80,6 +81,8 @@ class AudioOutputProcessor extends AudioWorkletProcessor { * @param {Float32Array[][]} inputList - Input PCM audio samples. Not used. * @param {Float32Array[][]} outputList - Output PCM audio samples. * @param {Record} parameters - Processing parameters. Not used. + * @returns {boolean} true to keep the processor node alive, false to let the browser terminate + * the node. */ // eslint-disable-next-line // @ts-ignore