Interface RtAudioDeviceInfo

The public device information structure for returning queried values.

interface RtAudioDeviceInfo {
    duplexChannels: number;
    id: number;
    inputChannels: number;
    isDefaultInput: number;
    isDefaultOutput: number;
    name: string;
    nativeFormats: number;
    outputChannels: number;
    preferredSampleRate: number;
    sampleRates: number[];
}

Properties

duplexChannels: number

Maximum simultaneous input/output channels supported by device.

id: number

Unique numeric device identifier.

inputChannels: number

Maximum input channels supported by device.

isDefaultInput: number

Is the device the default input device

isDefaultOutput: number

Is the device the default output device

name: string

Character string device identifier.

nativeFormats: number

Bit mask of supported data formats.

outputChannels: number

Maximum output channels supported by device.

preferredSampleRate: number

Preferred sample rate, e.g. for WASAPI the system sample rate.

sampleRates: number[]

Supported sample rates (queried from list of standard rates).