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) {
109
109
// bytes; 'dataPtr' is the start of the data section, and advances as
110
110
// space for structs and data is taken; 'structPtr' is reused as the
111
111
// 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.
115
116
entry = ( stackMemoryNeeded + 15 ) & ~ 15 ;
116
117
var dataPtr = stackAlloc ( entry ) + ( entry - stackMemoryNeeded ) ;
117
118
You can’t perform that action at this time.
0 commit comments