menu
AudioDevice
import { AudioDevice } from "destack:audio/binding";
Audio device.
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: stringStable device identifier.
groupId: stringRelated endpoint group identifier.
name: stringDisplay name.
backend: AudioBackendKindHost backend.
direction: AudioDirectionDevice direction.
transport: stringTransport or driver name.
isConnected: booleanWhether the device is currently connected.
isRaw: booleanWhether this is a raw endpoint.
isDefaultPlayback: booleanWhether this is the default playback endpoint.
isDefaultCapture: booleanWhether this is the default capture endpoint.
isDefaultLoopback: booleanWhether this is the default loopback endpoint.
shareModes: AudioShareMode[]Supported share modes.
preferredFormat: AudioFormatPreferred format.
formats: AudioFormatRange[]Supported format ranges.