mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-03 22:03:49 +02:00
Merge branch 'main' into release
This commit is contained in:
@@ -247,11 +247,16 @@ The following options are available:
|
|||||||
```ts
|
```ts
|
||||||
type WavOutputFormatOptions = {
|
type WavOutputFormatOptions = {
|
||||||
large?: boolean;
|
large?: boolean;
|
||||||
|
metadataFormat?: 'info' | 'id3';
|
||||||
onHeader?: (data: Uint8Array, position: number) => unknown;
|
onHeader?: (data: Uint8Array, position: number) => unknown;
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
- `large`\
|
- `large`\
|
||||||
When enabled, an RF64 file be written, allowing for file sizes to exceed 4 GiB, which is otherwise not possible for regular WAVE files.
|
When enabled, an RF64 file be written, allowing for file sizes to exceed 4 GiB, which is otherwise not possible for regular WAVE files.
|
||||||
|
- `metadataFormat`\
|
||||||
|
The metadata format to use for writing metadata tags.
|
||||||
|
- `'info'` (default): Writes metadata into a RIFF INFO LIST chunk, the default way to contain metadata tags within WAVE. Only allows for a limited subset of tags to be written.
|
||||||
|
- `'id3'`: Writes metadata into an ID3 chunk. Non-default, but used by many taggers in practice. Allows for a much larger and richer set of tags to be written.
|
||||||
- `onHeader`\
|
- `onHeader`\
|
||||||
Will be called once the file header is written. The header consists of the RIFF header, the format chunk, and the start of the data chunk (with a placeholder size of 0).
|
Will be called once the file header is written. The header consists of the RIFF header, the format chunk, and the start of the data chunk (with a placeholder size of 0).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user