Skip to content

Commit 76a4ffa

Browse files
authored
Update README.md
1 parent 6a751e0 commit 76a4ffa

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,6 @@ const buffer = await ctx.startRendering()
8787
| [pipe-stdout.js](examples/pipe-stdout.js) | PCM to stdout — pipe to `aplay`, `sox`, etc. |
8888
| [mic.js](examples/mic.js) | Live microphone → speakers with RMS meter (requires [`audio-mic`](https://github.com/audiojs/audio-mic)) |
8989

90-
## Node extensions
91-
92-
Beyond the spec, for Node.js. Not portable to browsers.
93-
94-
- **`addModule(fn)`** — register a processor via callback instead of URL, no file needed
95-
- **`sinkId: stream`** — pipe PCM to any writable: `new AudioContext({ sinkId: process.stdout })` then `node synth.js | aplay -f cd`
96-
- **`numberOfChannels`, `bitDepth`** — control output format in the constructor.
97-
- **`CustomMediaStreamTrack`** — extends `MediaStreamTrack` with a public constructor and `pushData(chunk, options)` to feed audio data (e.g. from a microphone). Prior art: `CanvasCaptureMediaStreamTrack`. See the [mic FAQ](#how-do-i-capture-audio-from-the-microphone).
98-
9990
## FAQ
10091

10192
<dl>
@@ -235,9 +226,18 @@ EventTarget ← Emitter ← DspObject ← AudioNode ← concrete nodes
235226
EventTarget ← Emitter ← AudioPort ← AudioInput / AudioOutput
236227
```
237228

229+
## Node extensions
230+
231+
Beyond the spec, for Node.js. Not portable to browsers.
232+
233+
- **`addModule(fn)`** — register a processor via callback instead of URL, no file needed
234+
- **`sinkId: stream`** — pipe PCM to any writable: `new AudioContext({ sinkId: process.stdout })` then `node synth.js | aplay -f cd`
235+
- **`numberOfChannels`, `bitDepth`** — control output format in the constructor.
236+
- **`CustomMediaStreamTrack`** — extends `MediaStreamTrack` with a public constructor and `pushData(chunk, options)` to feed audio data (e.g. from a microphone). Prior art: `CanvasCaptureMediaStreamTrack`. See the [mic FAQ](#how-do-i-capture-audio-from-the-microphone).
237+
238238
## Alternatives
239239

240-
- **[node-web-audio-api](https://github.com/ircam-ismm/node-web-audio-api)** — Rust napi bindings. Faster heavy DSP, but Node-only with native compilation and partial spec.
240+
- **[node-web-audio-api](https://github.com/ircam-ismm/node-web-audio-api)** — Rust napi bindings. Faster heavy DSP, but node-only with compilation step and partial spec.
241241
- **[standardized-audio-context](https://github.com/chrisguttandin/standardized-audio-context)** — Browser-only. Normalizes cross-browser quirks.
242242
- **[web-audio-api-rs](https://github.com/orottier/web-audio-api-rs)** — Pure Rust / WASM.
243243
- **[web-audio-engine](https://github.com/mohayonao/web-audio-engine)** — Archived. Partial spec coverage.

0 commit comments

Comments
 (0)