menu

AudioDevice

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

Audio device.

language/library/src/audio/binding/device.ds:125:154
1export struct AudioDevice {2    id: string;3    groupId: string;4    name: string;5    backend: AudioBackendKind;6    direction: AudioDirection;7    transport: string;8    isConnected: boolean;9    isRaw: boolean;10    isDefaultPlayback: boolean;11    isDefaultCapture: boolean;12    isDefaultLoopback: boolean;13    shareModes: AudioShareMode[];14    preferredFormat: AudioFormat;15    formats: AudioFormatRange[];16}

Members

id: string

Stable device identifier.

groupId: string

Related endpoint group identifier.

name: string

Display name.

backend: AudioBackendKind

Host backend.

direction: AudioDirection

Device direction.

transport: string

Transport or driver name.

isConnected: boolean

Whether the device is currently connected.

isRaw: boolean

Whether this is a raw endpoint.

isDefaultPlayback: boolean

Whether this is the default playback endpoint.

isDefaultCapture: boolean

Whether this is the default capture endpoint.

isDefaultLoopback: boolean

Whether this is the default loopback endpoint.

shareModes: AudioShareMode[]

Supported share modes.

preferredFormat: AudioFormat

Preferred format.

formats: AudioFormatRange[]

Supported format ranges.