File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -109,9 +109,10 @@ function createWasmAudioWorkletProcessor(audioParams) {
109109 // bytes; 'dataPtr' is the start of the data section, and advances as
110110 // space for structs and data is taken; 'structPtr' is reused as the
111111 // working start to each struct record.
112- // Here 'dataPtr' will be 16-byte aligned, from _emscripten_stack_alloc(),
113- // as were the output views, so we round up and advance the required bytes
114- // to ensure the addresses all work out at the end.
112+ // Ordinarily 'dataPtr' would be 16-byte aligned, from the internal
113+ // _emscripten_stack_alloc(), as were the output views, but we further
114+ // round up the requested size and advance the required bytes to ensure
115+ // the addresses finish at the stacktop in the end.
115116 entry = ( stackMemoryNeeded + 15 ) & ~ 15 ;
116117 var dataPtr = stackAlloc ( entry ) + ( entry - stackMemoryNeeded ) ;
117118
You can’t perform that action at this time.
0 commit comments