node-web-audio-api 1.0.3 → 1.0.4
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 +4 -0
- package/README.md +1 -1
- package/js/AudioWorkletNode.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ This library aims to provide an implementation that is both efficient and compli
|
|
|
9
9
|
- see [`orottier/web-audio-api-rs`](https://github.com/orottier/web-audio-api-rs/) for the "real" audio guts
|
|
10
10
|
- use [`napi-rs`](https://github.com/napi-rs/napi-rs/) for the Node.js bindings
|
|
11
11
|
|
|
12
|
-
For library authors who
|
|
12
|
+
For library authors who want to write components that run both in Node.js and the browser, we also provide [isomorphic-web-audio-api](https://github.com/ircam-ismm/isomorphic-web-audio-api)
|
|
13
13
|
|
|
14
14
|
## Install
|
|
15
15
|
|
package/js/AudioWorkletNode.js
CHANGED
|
@@ -114,7 +114,7 @@ module.exports = (jsExport, nativeBinding) => {
|
|
|
114
114
|
if (typeof options.parameterData === 'object' && options.parameterData !== null) {
|
|
115
115
|
parsedOptions.parameterData = {};
|
|
116
116
|
|
|
117
|
-
for (let [key, value]
|
|
117
|
+
for (let [key, value] of Object.entries(options.parameterData)) {
|
|
118
118
|
const parsedKey = conversions['DOMString'](key, {
|
|
119
119
|
context: `Failed to construct 'AudioWorkletNode': Invalid 'parameterData' property from AudioWorkletNodeOptions: Invalid key (${key})`,
|
|
120
120
|
});
|