@@ -211,7 +211,7 @@ let LibraryWebAudio = {
211211 // '_wsc' is short for 'wasm call', trying to use an identifier name that
212212 // will never conflict with user code
213213 let wasmCall = data [ '_wsc' ] ;
214- wasmCall && getWasmTableEntry ( wasmCall ) ( ...data [ 'x' ] ) ;
214+ wasmCall && getWasmTableEntry ( wasmCall ) ( ...data . args ) ;
215215 } ,
216216
217217 emscripten_create_wasm_audio_worklet_processor_async : ( contextHandle , options , callback , userData ) => {
@@ -247,10 +247,10 @@ let LibraryWebAudio = {
247247 // not get accidentally mixed with user submitted messages, the remainder
248248 // for space saving reasons, abbreviated from their variable names).
249249 '_wpn' : UTF8ToString ( HEAPU32 [ options ] ) ,
250- 'ap' : audioParams ,
251- 'ch' : contextHandle ,
252- 'cb' : callback ,
253- 'ud' : userData
250+ audioParams,
251+ contextHandle,
252+ callback,
253+ userData,
254254 } ) ;
255255 } ,
256256
@@ -274,9 +274,9 @@ let LibraryWebAudio = {
274274 numberOfOutputs : HEAP32 [ options + 1 ] ,
275275 outputChannelCount : HEAPU32 [ options + 2 ] ? readChannelCountArray ( HEAPU32 [ options + 2 ] >> 2 , HEAP32 [ options + 1 ] ) : void 0 ,
276276 processorOptions : {
277- 'cb' : callback ,
278- 'ud' : userData ,
279- 'sc' : emscriptenGetContextQuantumSize ( contextHandle )
277+ callback,
278+ userData,
279+ samplesPerChannel : emscriptenGetContextQuantumSize ( contextHandle ) ,
280280 }
281281 } : void 0 ;
282282
@@ -315,11 +315,11 @@ let LibraryWebAudio = {
315315 emscripten_current_thread_is_audio_worklet : ( ) => typeof AudioWorkletGlobalScope !== 'undefined' ,
316316
317317 emscripten_audio_worklet_post_function_v : ( audioContext , funcPtr ) => {
318- ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , 'x' : [ ] } ) ; // "WaSm Call"
318+ ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , args : [ ] } ) ; // "WaSm Call"
319319 } ,
320320
321321 $emscripten_audio_worklet_post_function_1 : ( audioContext , funcPtr , arg0 ) => {
322- ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , 'x' : [ arg0 ] } ) ; // "WaSm Call"
322+ ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , args : [ arg0 ] } ) ; // "WaSm Call"
323323 } ,
324324
325325 emscripten_audio_worklet_post_function_vi__deps : [ '$emscripten_audio_worklet_post_function_1' ] ,
@@ -333,7 +333,7 @@ let LibraryWebAudio = {
333333 } ,
334334
335335 $emscripten_audio_worklet_post_function_2 : ( audioContext , funcPtr , arg0 , arg1 ) => {
336- ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , 'x' : [ arg0 , arg1 ] } ) ; // "WaSm Call"
336+ ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , args : [ arg0 , arg1 ] } ) ; // "WaSm Call"
337337 } ,
338338
339339 emscripten_audio_worklet_post_function_vii__deps : [ '$emscripten_audio_worklet_post_function_2' ] ,
@@ -347,7 +347,7 @@ let LibraryWebAudio = {
347347 } ,
348348
349349 $emscripten_audio_worklet_post_function_3 : ( audioContext , funcPtr , arg0 , arg1 , arg2 ) => {
350- ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , 'x' : [ arg0 , arg1 , arg2 ] } ) ; // "WaSm Call"
350+ ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , args : [ arg0 , arg1 , arg2 ] } ) ; // "WaSm Call"
351351 } ,
352352 emscripten_audio_worklet_post_function_viii__deps : [ '$emscripten_audio_worklet_post_function_3' ] ,
353353 emscripten_audio_worklet_post_function_viii : ( audioContext , funcPtr , arg0 , arg1 , arg2 ) => {
@@ -367,7 +367,7 @@ let LibraryWebAudio = {
367367 assert ( UTF8ToString ( sigPtr ) [ 0 ] != 'v' , 'Do NOT specify the return argument in the signature string for a call to emscripten_audio_worklet_post_function_sig(), just pass the function arguments.' ) ;
368368 assert ( varargs ) ;
369369#endif
370- ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , 'x' : readEmAsmArgs ( sigPtr , varargs ) } ) ;
370+ ( audioContext ? EmAudio [ audioContext ] . audioWorklet . bootstrapMessage . port : messagePort ) . postMessage ( { '_wsc' : funcPtr , args : readEmAsmArgs ( sigPtr , varargs ) } ) ;
371371 }
372372} ;
373373
0 commit comments