Skip to content

Commit

Permalink
Tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlaltdavid committed Oct 5, 2022
1 parent 7862aa6 commit 1dd9534
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/domain/worklets/AudioOutputProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -80,6 +81,8 @@ class AudioOutputProcessor extends AudioWorkletProcessor {
* @param {Float32Array[][]} inputList - Input PCM audio samples. <em>Not used.</em>
* @param {Float32Array[][]} outputList - Output PCM audio samples.
* @param {Record<string, Float32Array>} parameters - Processing parameters. <em>Not used.</em>
* @returns {boolean} <code>true</code> to keep the processor node alive, <code>false</code> to let the browser terminate
* the node.
*/
// eslint-disable-next-line
// @ts-ignore
Expand Down

0 comments on commit 1dd9534

Please sign in to comment.