You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1d81161
Browse filesBrowse the repository at this point in the historyBrowse files
|`stream`| Emit as it encodes; `head()` after (see above) | all |
119
+
|`frames`| With `stream`: the exact length, when known upfront, so the header goes out exact (a canonical WAV; a pipe gets true totals) | wav, aiff, caf, qoa, flac, mp3 |
Copy file name to clipboardExpand all lines: packages/encode-aiff/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Input is `Float32Array[]` — one array per channel. Big-endian interleaving han
34
34
35
35
### Streaming output
36
36
37
-
`stream: true`: the header goes out with the first samples, sizes `0xFFFFFFFF` (read to the end), `meta` as an ID3 chunk before SSND. After `flush()`, `head()` returns the exact header to write over the start of a file.
37
+
`stream: true`: the header goes out with the first samples, sizes `0xFFFFFFFF` (read to the end), `meta` as an ID3 chunk before SSND. After `flush()`, `head()` returns the exact header to write over the start of a file. With `frames` (the exact length, known upfront) the header goes out exact and `head()` has nothing to add.
Copy file name to clipboardExpand all lines: packages/encode-caf/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Input is `Float32Array[]` — one array per channel. Big-endian interleaving han
36
36
37
37
### Streaming output
38
38
39
-
`stream: true`: the header goes out with the first samples, the data chunk size `-1` (the CAF spec's "unknown, runs to the end"). After `flush()`, `head()` returns the exact header to write over the start of a file.
39
+
`stream: true`: the header goes out with the first samples, the data chunk size `-1` (the CAF spec's "unknown, runs to the end"). After `flush()`, `head()` returns the exact header to write over the start of a file. With `frames` (the exact length, known upfront) the header goes out exact and `head()` has nothing to add.
0 commit comments