node-web-audio-api 1.0.7 → 1.0.8

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,5 +1,12 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.0.8 - 2026-02-14
4
+
5
+ - Fix: AudioRenderCapacity.stop cf. #167
6
+ - Fix: More robust debug build loading
7
+ - Docs: Faust WASM examples
8
+
9
+ ## v1.0.7 - 2025-11-18
3
10
  ## v1.0.6 - 2025-11-18
4
11
 
5
12
  - Fix `mjs` exports
@@ -85,7 +85,7 @@ class AudioRenderCapacity extends EventTarget {
85
85
  throw new TypeError(`Invalid Invocation: Value of 'this' must be of type 'AudioRenderCapacity'`);
86
86
  }
87
87
 
88
- return this[kNapiObj].start();
88
+ return this[kNapiObj].stop();
89
89
  }
90
90
  }
91
91
 
package/load-native.cjs CHANGED
@@ -1,4 +1,5 @@
1
1
  const fs = require('node:fs');
2
+ const path = require('node:path');
2
3
  const { platform, arch } = process;
3
4
 
4
5
  let nativeBinding = null;
@@ -81,11 +82,11 @@ switch (platform) {
81
82
  }
82
83
 
83
84
  // use local build if exists
84
- if (fs.existsSync('node-web-audio-api.build-release.node')) {
85
+ if (fs.existsSync(path.join(__dirname, 'node-web-audio-api.build-release.node'))) {
85
86
  nativeBinding = require('./node-web-audio-api.build-release.node');
86
87
  }
87
88
 
88
- if (fs.existsSync('node-web-audio-api.build-debug.node')) {
89
+ if (fs.existsSync(path.join(__dirname, 'node-web-audio-api.build-debug.node'))) {
89
90
  nativeBinding = require('./node-web-audio-api.build-debug.node');
90
91
  }
91
92
 
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-web-audio-api",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "author": "Benjamin Matuszewski",
5
5
  "description": "Web Audio API implementation for Node.js",
6
6
  "exports": {
@@ -51,6 +51,7 @@
51
51
  "wpt:only": "node ./.scripts/wpt-harness.mjs"
52
52
  },
53
53
  "devDependencies": {
54
+ "@grame/faustwasm": "^0.15.0",
54
55
  "@ircam/eslint-config": "^2.0.0",
55
56
  "@ircam/sc-scheduling": "^1.0.0",
56
57
  "@ircam/sc-utils": "^1.9.0",