Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinAudioDevice

public struct OdinAudioDevice: Equatable, Hashable

Struct for audio device handling.

Properties

uid

public let uid: String

The UID of the audio device.

id

public var id: UInt32

The ID of the audio device.

name

public var name: String

The name of the audio device.

sampleRate

public var sampleRate: Double

The sample rate of the audio device.

inputChannels

public var inputChannels: UInt32

The number of input channels provided by this audio device.

Note: On iOS, this will just return the channel count of the current AVAudioSession input node to identify a device as being able to handle input.

outputChannels

public var outputChannels: UInt32

The number of output channels provided by this audio device.

Note: On iOS, this will just return the channel count of the current AVAudioSession output node to identify a device as being able to handle output.

isInput

public var isInput: Bool

Indicates whether or not this is an input device.

isOutput

public var isOutput: Bool

Indicates whether or not this is an output device.