File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,10 @@ function createWasmAudioWorkletProcessor(audioParams) {
4242 // Prepare the output views; see createOutputViews(). The 'minimum alloc'
4343 // firstly stops STACK_OVERFLOW_CHECK failing (since the stack will be
4444 // full if we allocate all the available space, with 16 bytes being the
45- // minimum allo size due to alignments) leaving room for a single
45+ // minimum alloc size due to alignments) leaving room for a single
4646 // AudioSampleFrame as a minumum. There's an arbitrary maximum of 64, for
4747 // the case where a multi-MB stack is passed.
48+ // TODO: if max_align_t changes the minimum alloc will need readdressing
4849 this . outputViews = new Array ( Math . min ( ( ( wwParams . stackSize - /*minimum alloc*/ 16 ) / this . bytesPerChannel ) | 0 , /*sensible limit*/ 64 ) ) ;
4950#if ASSERTIONS
5051 console . assert ( this . outputViews . length > 0 , `AudioWorklet needs more stack allocating (at least ${ this . bytesPerChannel } )` ) ;
You can’t perform that action at this time.
0 commit comments