Skip to content

Commit 24360cf

Browse files
committed
Minor: follow same JS style
1 parent 1ecfb23 commit 24360cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/audio_worklet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ function createWasmAudioWorkletProcessor(audioParams) {
4747
let numInputs = inputList.length,
4848
numOutputs = outputList.length,
4949
numParams = 0, i, j, k, dataPtr,
50+
quantumBytes = this.quantumSize * 4,
5051
stackMemoryNeeded = (numInputs + numOutputs) * {{{ C_STRUCTS.AudioSampleFrame.__size__ }}},
5152
oldStackPtr = stackSave(),
5253
inputsPtr, outputsPtr, outputDataPtr, paramsPtr,
5354
didProduceAudio, paramArray;
5455

5556
// Calculate how much stack space is needed.
56-
const quantumBytes = this.quantumSize * 4;
5757
for (i of inputList) stackMemoryNeeded += i.length * quantumBytes;
5858
for (i of outputList) stackMemoryNeeded += i.length * quantumBytes;
5959
for (i in parameters) stackMemoryNeeded += parameters[i].byteLength + {{{ C_STRUCTS.AudioParamFrame.__size__ }}}, ++numParams;

0 commit comments

Comments
 (0)