node-web-audio-api 1.0.7 → 1.0.9

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,16 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## v1.0.9 - 2026-03-23
4
+
5
+ - Fix: AudioWorklet properly recycle param buffers when dropped
6
+
7
+ ## v1.0.8 - 2026-02-14
8
+
9
+ - Fix: AudioRenderCapacity.stop cf. #167
10
+ - Fix: More robust debug build loading
11
+ - Docs: Faust WASM examples
12
+
13
+ ## v1.0.7 - 2025-11-18
3
14
  ## v1.0.6 - 2025-11-18
4
15
 
5
16
  - 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/js/lib/events.js CHANGED
@@ -5,6 +5,6 @@ module.exports.propagateEvent = function propagateEvent(eventTarget, event) {
5
5
  if (isFunction(eventTarget[`on${event.type}`])) {
6
6
  eventTarget[`on${event.type}`](event);
7
7
  }
8
- // then distach to add event listeners
8
+ // then dispatch to `addEventListener` callbacks
9
9
  eventTarget.dispatchEvent(event);
10
10
  }
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.9",
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",