menu

AudioSampleFormat

import { AudioSampleFormat } from "destack:audio/binding";

PCM sample format.

language/library/src/audio/binding/device.ds:39:52
1export enum AudioSampleFormat {2    U8 = 1,3    S16 = 2,4    S24 = 3,5    S32 = 4,6    F32 = 5,7    F64 = 6,8}

Variants

U8 = 1

Unsigned 8-bit PCM.

S16 = 2

Signed 16-bit PCM.

S24 = 3

Signed 24-bit PCM in 32-bit containers.

S32 = 4

Signed 32-bit PCM.

F32 = 5

32-bit floating-point PCM.

F64 = 6

64-bit floating-point PCM.