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) {
42
42
// Prepare the output views; see createOutputViews(). The 'minimum alloc'
43
43
// firstly stops STACK_OVERFLOW_CHECK failing (since the stack will be
44
44
// 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
46
46
// AudioSampleFrame as a minumum. There's an arbitrary maximum of 64, for
47
47
// the case where a multi-MB stack is passed.
48
+ // TODO: if max_align_t changes the minimum alloc will need readdressing
48
49
this . outputViews = new Array ( Math . min ( ( ( wwParams . stackSize - /*minimum alloc*/ 16 ) / this . bytesPerChannel ) | 0 , /*sensible limit*/ 64 ) ) ;
49
50
#if ASSERTIONS
50
51
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