@@ -211,7 +211,7 @@ let LibraryWebAudio = {
211
211
// '_wsc' is short for 'wasm call', trying to use an identifier name that
212
212
// will never conflict with user code
213
213
let wasmCall = data [ '_wsc' ] ;
214
- wasmCall && getWasmTableEntry ( wasmCall ) ( ...data [ 'x' ] ) ;
214
+ wasmCall && getWasmTableEntry ( wasmCall ) ( ...data . args ) ;
215
215
} ,
216
216
217
217
emscripten_create_wasm_audio_worklet_processor_async : ( contextHandle , options , callback , userData ) => {
@@ -247,10 +247,10 @@ let LibraryWebAudio = {
247
247
// not get accidentally mixed with user submitted messages, the remainder
248
248
// for space saving reasons, abbreviated from their variable names).
249
249
'_wpn' : UTF8ToString ( HEAPU32 [ options ] ) ,
250
- 'ap' : audioParams ,
251
- 'ch' : contextHandle ,
252
- 'cb' : callback ,
253
- 'ud' : userData
250
+ audioParams,
251
+ contextHandle,
252
+ callback,
253
+ userData,
254
254
} ) ;
255
255
} ,
256
256
@@ -274,9 +274,9 @@ let LibraryWebAudio = {
274
274
numberOfOutputs : HEAP32 [ options + 1 ] ,
275
275
outputChannelCount : HEAPU32 [ options + 2 ] ? readChannelCountArray ( HEAPU32 [ options + 2 ] >> 2 , HEAP32 [ options + 1 ] ) : void 0 ,
276
276
processorOptions : {
277
- 'cb' : callback ,
278
- 'ud' : userData ,
279
- 'sc' : emscriptenGetContextQuantumSize ( contextHandle )
277
+ callback,
278
+ userData,
279
+ samplesPerChannel : emscriptenGetContextQuantumSize ( contextHandle ) ,
280
280
}
281
281
} : void 0 ;
282
282
@@ -315,11 +315,11 @@ let LibraryWebAudio = {
315
315
emscripten_current_thread_is_audio_worklet : ( ) => typeof AudioWorkletGlobalScope !== 'undefined' ,
316
316
317
317
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"
319
319
} ,
320
320
321
321
$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"
323
323
} ,
324
324
325
325
emscripten_audio_worklet_post_function_vi__deps : [ '$emscripten_audio_worklet_post_function_1' ] ,
@@ -333,7 +333,7 @@ let LibraryWebAudio = {
333
333
} ,
334
334
335
335
$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"
337
337
} ,
338
338
339
339
emscripten_audio_worklet_post_function_vii__deps : [ '$emscripten_audio_worklet_post_function_2' ] ,
@@ -347,7 +347,7 @@ let LibraryWebAudio = {
347
347
} ,
348
348
349
349
$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"
351
351
} ,
352
352
emscripten_audio_worklet_post_function_viii__deps : [ '$emscripten_audio_worklet_post_function_3' ] ,
353
353
emscripten_audio_worklet_post_function_viii : ( audioContext , funcPtr , arg0 , arg1 , arg2 ) => {
@@ -367,7 +367,7 @@ let LibraryWebAudio = {
367
367
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.' ) ;
368
368
assert ( varargs ) ;
369
369
#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 ) } ) ;
371
371
}
372
372
} ;
373
373
0 commit comments