Skip to content

Commit 8f45910

Browse files
committed
Clarification
1 parent 85b4689 commit 8f45910

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/audio_worklet.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ function createWasmAudioWorkletProcessor(audioParams) {
110110
// for structs and data is taken; 'structPtr' is reused as the working
111111
// start to each struct record.
112112
// 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.
113+
// _emscripten_stack_alloc(), as were the output views, and so to ensure
114+
// the views fall on the correct addresses (and we finish at the stacktop)
115+
// bytes are added and the start advanced.
116116
entry = (stackMemoryNeeded + 15) & ~15;
117117
var dataPtr = stackAlloc(entry) + (entry - stackMemoryNeeded);
118118

0 commit comments

Comments
 (0)