You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.assert(outputViewsNeeded<=this.outputViews.length,`Too many AudioWorklet outputs (need ${outputViewsNeeded} but have stack space for ${this.outputViews.length})`);
100
-
k=outputDataPtr;
101
-
for(i=outputViewsNeeded-1;i>=0;i--){
102
-
console.assert(this.outputViews[i].byteOffset==k,'Internal error in addresses of the output array views');
103
-
k+=bytesPerChannel;
104
-
}
105
-
//#endif
91
+
#endif
106
92
107
93
// Allocate the necessary stack space (dataPtr is always in bytes, and
108
94
// advances as space for structs as data is taken, but note the switching
109
-
// between bytes and indices into the various heaps).
110
-
95
+
// between bytes and indices into the various heaps, usually in 'k').
111
96
dataPtr=stackAlloc(stackMemoryNeeded);
97
+
112
98
// Copy input audio descriptor structs and data to Wasm
113
99
inputsPtr=dataPtr;
114
100
k=inputsPtr>>2;
@@ -126,21 +112,6 @@ function createWasmAudioWorkletProcessor(audioParams) {
126
112
}
127
113
}
128
114
129
-
// Copy output audio descriptor structs to Wasm
130
-
// TODO: now dataPtr tracks the next address, move this above
0 commit comments