@libreaudio/la-call 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -31,9 +31,6 @@ const createWasmProcessor = (audioContext, properties) => {
31
31
  if (! navigator.userAgent.match(/Android/i)) {
32
32
  console.log("la-call: using audio worklet");
33
33
 
34
- const processorBlob = new Blob([mapiProcJs], { type: 'text/javascript' });
35
- const processorURL = URL.createObjectURL(processorBlob);
36
-
37
34
  const moduleLoaded = () => {
38
35
  previouslyLoaded = true;
39
36
 
@@ -59,6 +56,9 @@ const createWasmProcessor = (audioContext, properties) => {
59
56
  if (previouslyLoaded) {
60
57
  moduleLoaded();
61
58
  } else {
59
+ const processorBlob = new Blob([mapiProcJs], { type: 'text/javascript' });
60
+ const processorURL = URL.createObjectURL(processorBlob);
61
+
62
62
  audioContext.audioWorklet.addModule(processorURL)
63
63
  .then(moduleLoaded)
64
64
  .catch(reject);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libreaudio/la-call",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Voice isolation and optimization AudioWorklet/WASM module for web conferencing",
5
5
  "license": "GPL-3.0+",
6
6
  "main": "dist/index.js",