Skip to content

@liminal-hq/undertone / WavOptions

Interface: WavOptions ​

Defined in: wav.ts:9

Properties ​

bitDepth? ​

optional bitDepth?: 16 | 24 | 32

Defined in: wav.ts:11

Sample format: 16 or 24-bit integer PCM, or 32-bit IEEE float. Default 16.


channelMask? ​

optional channelMask?: number

Defined in: wav.ts:17

Speaker position mask for 3-8 channel files. Defaults follow the channel count.


dither? ​

optional dither?: boolean

Defined in: wav.ts:13

Add TPDF dither before quantizing. 16-bit only. Default true.


seed? ​

optional seed?: string | number

Defined in: wav.ts:15

Seed for the dither noise, so the same render always gives the same bytes. Default 0.