Skip to content
Type

Mp3OutputFormatOptions

MP3-specific output options.

ts
type Mp3OutputFormatOptions = {
	xingHeader?: boolean;
	onXingFrame?: (data: Uint8Array, position: number) => unknown;
};

Used by

Properties

xingHeader

ts
xingHeader?: boolean;

Controls whether the Xing header, which contains additional metadata as well as an index, is written to the start of the MP3 file. When disabled, the writing process becomes append-only. Defaults to true.

Events

onXingFrame

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

Will be called once the Xing metadata frame is finalized.

Released under the Mozilla Public License 2.0.