Skip to content
Type

WavOutputFormatOptions

WAVE-specific output options.

ts
type WavOutputFormatOptions = {
	large?: boolean;
	onHeader?: (data: Uint8Array, position: number) => unknown;
};

Used by

Properties

large

ts
large?: boolean;

When enabled, an RF64 file will be written, allowing for file sizes to exceed 4 GiB, which is otherwise not possible for regular WAVE files.

Events

onHeader

ts
onHeader?: ((data: Uint8Array<ArrayBufferLike>, position: number) => unknown);

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).

Released under the Mozilla Public License 2.0.