Interface RtAudioStreamParameters

The structure for specifying input or ouput stream parameters.

interface RtAudioStreamParameters {
    deviceId?: number;
    firstChannel?: number;
    nChannels: number;
}

Properties

deviceId?: number

Device id. Can be obtained using getDefaultInputDevice/getDefaultOutputDevice or using getDevices from the field id.

NOTE: For legacy reasons, this field also accepts the index of the device in the array that is returned from getDevices. Please avoid using it.

firstChannel?: number

First channel index on device (default = 0).

nChannels: number

Number of channels.