AKDevice

open class AKDevice : NSObject

Wrapper for audio device selection

  • The human-readable name for the device.

    Declaration

    Swift

    open var name: String
  • Declaration

    Swift

    open var nInputChannels: Int?
  • Declaration

    Swift

    open var nOutputChannels: Int?
  • The device identifier.

    Declaration

    Swift

    open fileprivate(set) var deviceID: DeviceID
  • Initialize the device

    Declaration

    Swift

    public init(name: String, deviceID: DeviceID, dataSource: String = "")

    Parameters

    name

    The human-readable name for the device.

    deviceID

    The device identifier.

  • Initialize the device

    Declaration

    Swift

    public convenience init(portDescription: AVAudioSessionPortDescription)

    Parameters

    portDescription

    A port description object that describes a single input or output port associated with an audio route.

  • Printable device description

    Declaration

    Swift

    override open var description: String { get }
  • Declaration

    Swift

    override open func isEqual(_ object: Any?) -> Bool