File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ function createWasmAudioWorkletProcessor(audioParams) {
36
36
this . bytesPerChannel = this . samplesPerChannel * { { { getNativeTypeSize ( 'float' ) } } } ;
37
37
38
38
// Create up-front as many typed views for marshalling the output data as
39
- // may be required (with an arbitrary maximum of 16 , for the case where a
39
+ // may be required (with an arbitrary maximum of 64 , for the case where a
40
40
// multi-MB stack is passed), allocated at the *top* of the worklet's
41
41
// stack (and whose addresses are fixed). The 'minimum alloc' firstly
42
42
// stops STACK_OVERFLOW_CHECK failing (since the stack will be full, and
43
43
// 16 being the minimum allocation size due to alignments) and leaves room
44
44
// for a single AudioSampleFrame as a minumum.
45
- this . maxBuffers = Math . min ( ( ( wwParams . stackSize - /*minimum alloc*/ 16 ) / this . bytesPerChannel ) | 0 , /*sensible limit*/ 16 ) ;
45
+ this . maxBuffers = Math . min ( ( ( wwParams . stackSize - /*minimum alloc*/ 16 ) / this . bytesPerChannel ) | 0 , /*sensible limit*/ 64 ) ;
46
46
#if ASSERTIONS
47
47
console . assert ( this . maxBuffers > 0 , `AudioWorklet needs more stack allocating (at least ${ this . bytesPerChannel } )` ) ;
48
48
#endif
You can’t perform that action at this time.
0 commit comments