Skip to content

Commit 22c23e2

Browse files
committed
Minor docs
1 parent 3b428ee commit 22c23e2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/audio_worklet.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)