@libreaudio/la-call 0.0.1-k → 0.0.1-l
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -264,7 +264,7 @@ const createWasmProcessor = (audioContext) => {
|
|
|
264
264
|
reject(event.data.error);
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
|
-
processor.port.postMessage({ type: 'init', wasm:
|
|
267
|
+
processor.port.postMessage({ type: 'init', wasm: mapiWasmBlob, js: mapiWasmJs });
|
|
268
268
|
})
|
|
269
269
|
.catch(reject);
|
|
270
270
|
return;
|
|
@@ -274,7 +274,7 @@ const createWasmProcessor = (audioContext) => {
|
|
|
274
274
|
console.log("Using Script Processor");
|
|
275
275
|
|
|
276
276
|
// execute JS to expose the emscripten load module function
|
|
277
|
-
const jsfn_bbba = new Function(
|
|
277
|
+
const jsfn_bbba = new Function(mapiWasmJs + 'return mapi_bbba;');
|
|
278
278
|
const create_module_bbba = jsfn_bbba.call();
|
|
279
279
|
|
|
280
280
|
const bufferSize = 4096;
|
|
@@ -285,7 +285,7 @@ const createWasmProcessor = (audioContext) => {
|
|
|
285
285
|
// create the wasm module and instance
|
|
286
286
|
create_module_bbba({
|
|
287
287
|
instantiateWasm: (imports, successCallback) => {
|
|
288
|
-
WebAssembly.instantiate(
|
|
288
|
+
WebAssembly.instantiate(mapiWasmBlob, imports)
|
|
289
289
|
.then(output => {
|
|
290
290
|
successCallback(output.instance, output.module);
|
|
291
291
|
})
|