node-web-audio-api 0.11.0 → 0.13.0

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/CHANGELOG.md CHANGED
@@ -1,42 +1,51 @@
1
- ## v0.11.0
1
+ ## v0.13.0 (08/11/2023)
2
2
 
3
- - Update upstream crate to v0.32
3
+ - Update upstream crate to [v0.36.1](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0361-2023-11-08)
4
+ - Ship build for linux arm64
5
+
6
+ ## v0.12.0 (04/09/2023)
7
+
8
+ - Update upstream crate to [v0.33](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0330-2023-07-27)
9
+
10
+ ## v0.11.0 (21/07/2023)
11
+
12
+ - Update upstream crate to [v0.32](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0320-2023-07-16)
4
13
  - Implement AudioDestination API
5
14
  - Make decodeAudioData(arrayBuffer) API compliant (drop `load` helper)
6
15
 
7
- ## v0.10.0
16
+ ## v0.10.0 (26/05/2023)
8
17
 
9
- - Update upstream crate to v0.31
18
+ - Update upstream crate to [v0.31](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0310-2023-06-25)
10
19
 
11
- ## v0.9.0
20
+ ## v0.9.0 (08/06/2023)
12
21
 
13
- - Update upstream crate to v0.30
22
+ - Update upstream crate to [v0.30](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0300-2023-06-07)
14
23
 
15
- ## v0.8.0
24
+ ## v0.8.0 (19/05/2023)
16
25
 
17
26
  - Implement MediaDevices enumerateDeviaces and getUserMedia
18
27
  - Use jack as default output if exists on linux
19
28
 
20
- ## v0.7.0
29
+ ## v0.7.0 (23/02/2023)
21
30
 
22
31
  - Improve readme & doc
23
32
  - Fix AudioParam method names
24
33
 
25
- ## v0.6.0 - Feb 2023
34
+ ## v0.6.0 (01/02/2023)
26
35
 
27
36
  - Basic support for mediaDevices & MediaStreamAudioSourceNode
28
37
  - Add bindings to ConvolverNode, AnalyserNode & Panner nodes
29
- - Update upstream crate to v0.26
38
+ - Update upstream crate to [v0.26](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0250-2022-11-06)
30
39
 
31
- ## v0.5.0 - Dec 2022
40
+ ## v0.5.0 (19/12/2022)
32
41
 
33
42
  - Implement AudioParam#setValueCurveAtTime
34
43
  - Offline context constructor
35
44
 
36
- ## v0.4.0 - Nov 2022
45
+ ## v0.4.0 (07/11/2022)
37
46
 
38
47
  - Implement offline audio context
39
- - Update upstream crate to v0.24
48
+ - Update upstream crate to [v0.24](https://github.com/orottier/web-audio-api-rs/blob/main/CHANGELOG.md#version-0240-2022-09-10)
40
49
  - Implement AudioNode#disconnect
41
50
  - Properly support ESM
42
51
  - Limit number of online contexts to 1 on Linux
package/README.md CHANGED
@@ -64,8 +64,6 @@ npm run build
64
64
  node examples/granular-scrub.mjs
65
65
  ```
66
66
 
67
- If
68
-
69
67
  ## Caveats
70
68
 
71
69
  - The async methods are not trully async for now and are just patched on the JS side. This will evolve once the "trully" async version of the methods are implemented in the upstream library.
@@ -81,6 +79,7 @@ If
81
79
  | macOS aarch64 | ✓ | |
82
80
  | Linux x64 gnu | ✓ | |
83
81
  | Linux arm gnueabihf (RPi) | ✓ | ✓ |
82
+ | Linux arm64 gnu (RPi) | ✓ | ✓ |
84
83
 
85
84
 
86
85
  ## Notes for Linux users
package/index.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ // Referencing the default lib web api typings
2
+ /// <reference lib="dom" />
3
+
4
+ declare module "node-web-audio-api" {
5
+ export import AudioContext = globalThis.AudioContext;
6
+ export import OfflineAudioContext = globalThis.OfflineAudioContext;
7
+ export import AudioBuffer = globalThis.AudioBuffer;
8
+ export import PeriodicWave = globalThis.PeriodicWave;
9
+ export import MediaStreamAudioSourceNode = globalThis.MediaStreamAudioSourceNode;
10
+ export import AnalyserNode = globalThis.AnalyserNode;
11
+ export import AudioBufferSourceNode = globalThis.AudioBufferSourceNode;
12
+ export import BiquadFilterNode = globalThis.BiquadFilterNode;
13
+ export import ChannelMergerNode = globalThis.ChannelMergerNode;
14
+ export import ChannelSplitterNode = globalThis.ChannelSplitterNode;
15
+ export import ConstantSourceNode = globalThis.ConstantSourceNode;
16
+ export import ConvolverNode = globalThis.ConvolverNode;
17
+ export import DelayNode = globalThis.DelayNode;
18
+ export import DynamicsCompressorNode = globalThis.DynamicsCompressorNode;
19
+ export import GainNode = globalThis.GainNode;
20
+ export import IIRFilterNode = globalThis.IIRFilterNode;
21
+ export import OscillatorNode = globalThis.OscillatorNode;
22
+ export import PannerNode = globalThis.PannerNode;
23
+ export import StereoPannerNode = globalThis.StereoPannerNode;
24
+ export import WaveShaperNode = globalThis.WaveShaperNode;
25
+ }
package/index.mjs CHANGED
@@ -1,9 +1,21 @@
1
- // ---------------------------------------------------------- //
2
- // ---------------------------------------------------------- //
3
- // - WARNING - DO NOT EDIT - //
4
- // - This file has been generated - //
5
- // ---------------------------------------------------------- //
6
- // ---------------------------------------------------------- //
1
+ // -------------------------------------------------------------------------- //
2
+ // -------------------------------------------------------------------------- //
3
+ // //
4
+ // //
5
+ // //
6
+ // ██╗ ██╗ █████╗ ██████╗ ███╗ ██╗██╗███╗ ██╗ ██████╗ //
7
+ // ██║ ██║██╔══██╗██╔══██╗████╗ ██║██║████╗ ██║██╔════╝ //
8
+ // ██║ █╗ ██║███████║██████╔╝██╔██╗ ██║██║██╔██╗ ██║██║ ███╗ //
9
+ // ██║███╗██║██╔══██║██╔══██╗██║╚██╗██║██║██║╚██╗██║██║ ██║ //
10
+ // ╚███╔███╔╝██║ ██║██║ ██║██║ ╚████║██║██║ ╚████║╚██████╔╝ //
11
+ // ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═╝╚═╝ ╚═══╝ ╚═════╝ //
12
+ // //
13
+ // //
14
+ // - This file has been generated --------------------------- //
15
+ // //
16
+ // //
17
+ // -------------------------------------------------------------------------- //
18
+ // -------------------------------------------------------------------------- //
7
19
 
8
20
  // re-export index.js to support clean esm syntax
9
21
  // see https://github.com/nodejs/node/issues/40541#issuecomment-951609570
@@ -37,7 +49,6 @@ export const {
37
49
  WaveShaperNode,
38
50
 
39
51
  // helper methods
40
- load,
41
52
  mediaDevices,
42
53
  } = nativeModule;
43
54
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-web-audio-api",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "author": "Benjamin Matuszewski",
5
5
  "description": "Node.js bindings for web-audio-api-rs using napi-rs",
6
6
  "exports": {
@@ -25,6 +25,7 @@
25
25
  "napi": {
26
26
  "name": "node-web-audio-api"
27
27
  },
28
+ "types": "./index.d.ts",
28
29
  "publishConfig": {
29
30
  "registry": "https://registry.npmjs.org/",
30
31
  "access": "public"
@@ -34,6 +35,7 @@
34
35
  "build": "npm run generate && napi build --platform --release",
35
36
  "build:jack": "npm run generate && napi build --platform --features jack --release",
36
37
  "build:debug": "npm run generate && napi build --platform",
38
+ "build:only": "napi build --platform --release",
37
39
  "check": "cargo fmt && cargo clippy",
38
40
  "generate": "node generator/index.mjs && cargo fmt",
39
41
  "lint": "eslint monkey-patch.js index.cjs index.mjs && eslint examples/*.mjs",