AudioDevice

public class AudioDevice : LinphoneObject

Object holding audio device information. It contains the name of the device, it’s type if available (Earpiece, Speaker, Bluetooth, etc..) and capabilities (input, output or both) the name of the driver that created it (filter in mediastreamer). You can use the AudioDevice objects to configure default input/output devices or do it dynamically during a call. To get the list of available devices, use Core.getAudioDevices(). This list will be limited to one device of each type. Use Core.getExtendedAudioDevices() for a complete list.

  • Undocumented

    Declaration

    Swift

    public static func getSwiftObject(cObject: OpaquePointer) -> AudioDevice
  • Undocumented

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Returns the capabilities of the device.

    Declaration

    Swift

    public var capabilities: AudioDeviceCapabilities { get }

    Return Value

    the AudioDeviceCapabilities of the audio device (RECORD, PLAY or both) as a bit mask

  • Returns the name of the audio device.

    Declaration

    Swift

    public var deviceName: String { get }

    Return Value

    the name of the audio device.

  • Returns the driver name used by the device.

    Declaration

    Swift

    public var driverName: String { get }

    Return Value

    the name of the driver used by this audio device.

  • id

    Returns the id of the audio device.

    Declaration

    Swift

    public var id: String { get }

    Return Value

    the id of the audio device.

  • Returns the type of the device.

    Declaration

    Swift

    public var type: AudioDeviceType { get }

    Return Value

    the AudioDeviceType of the audio device (microphone, speaker, earpiece, bluetooth, etc…)

  • Returns whether or not the audio device has the given capability.

    Declaration

    Swift

    public func hasCapability(capability: AudioDeviceCapabilities) -> Bool

    Parameters

    capability

    Return Value

    true if the audio device has the capability, false otherwise