@libreaudio/la-call 0.0.4 → 0.1.1

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.d.ts CHANGED
@@ -5,4 +5,6 @@ interface WasmProcessorProperties {
5
5
  intensity: number;
6
6
  }
7
7
 
8
- export declare const createWasmProcessor: (audioContext: AudioContext, properties: WasmProcessorProperties) => Promise<AudioNode>;
8
+ declare const createWasmProcessor: (audioContext: AudioContext, properties: WasmProcessorProperties) => Promise<AudioNode>;
9
+
10
+ export { createWasmProcessor }
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ const createWasmProcessor = (audioContext, properties) => {
27
27
  const intensity = /*typedef(properties.intensity) === 'undefined' ? 100 :*/ properties.intensity;
28
28
 
29
29
  if (! navigator.userAgent.match(/Android/i)) {
30
- console.log("Using Audio Worklet");
30
+ console.log("la-call: using audio worklet");
31
31
 
32
32
  const processorBlob = new Blob([mapiProcJs], { type: 'text/javascript' });
33
33
  const processorURL = URL.createObjectURL(processorBlob);
@@ -57,7 +57,7 @@ const createWasmProcessor = (audioContext, properties) => {
57
57
  }
58
58
 
59
59
  // NOTE fallback with createScriptProcessor follows here
60
- console.log("Using Script Processor");
60
+ console.log("la-call: using script processor");
61
61
 
62
62
  // execute JS to expose the emscripten load module function
63
63
  const jsfn_bbba = new Function(wasmJs + 'return mapi_bbba;');
@@ -137,4 +137,4 @@ const createWasmProcessor = (audioContext, properties) => {
137
137
  });
138
138
  };
139
139
 
140
- export default createWasmProcessor;
140
+ export { createWasmProcessor };
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@libreaudio/la-call",
3
- "version": "0.0.4",
3
+ "version": "0.1.1",
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",
7
7
  "types": "dist/index.d.ts",
8
+ "type": "module",
8
9
  "files": [
9
10
  "dist/",
10
11
  "package.json",