Class AudioDevice
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 Linphone.AudioDevice objects to configure default input/output devices or do it dynamically during a call. To get the list of available devices, use Linphone.Core.AudioDevices. This list will be limited to one device of each type. Use Linphone.Core.ExtendedAudioDevices for a complete list.
Inherited Members
Namespace: Linphone
Assembly: cs.temp.dll.dll
Syntax
public class AudioDevice : LinphoneObject
Properties
Capabilities
Returns the capabilities of the device.
Declaration
public AudioDeviceCapabilities Capabilities { get; }
Property Value
Type | Description |
---|---|
AudioDeviceCapabilities | the Linphone.AudioDeviceCapabilities of the audio device (RECORD, PLAY or both) as a bit mask |
DeviceName
Returns the name of the audio device.
Declaration
public string DeviceName { get; }
Property Value
Type | Description |
---|---|
System.String | the name of the audio device. |
DriverName
Returns the driver name used by the device.
Declaration
public string DriverName { get; }
Property Value
Type | Description |
---|---|
System.String | the name of the driver used by this audio device. |
FollowsSystemRoutingPolicy
Returns whether the audio device automatically follows the system's audio routing policy.
This capability is available on some system (typically iOS) and might be convenient to simply specify liblinphone to let the system decide about which audio route is being used to handle a call. The actual Linphone.AudioDeviceType may be unknown at some point, typically when no calls are running, otherwise it is reflected to be the actual system's audio route.
Declaration
public bool FollowsSystemRoutingPolicy { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the audio device automatically follows the system audio routing policy. |
Id
Returns the id of the audio device.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String | the id of the audio device. |
Type
Returns the type of the device.
Declaration
public AudioDeviceType Type { get; }
Property Value
Type | Description |
---|---|
AudioDeviceType | the Linphone.AudioDeviceType of the audio device (microphone, speaker, earpiece, bluetooth, etc...) |
Methods
HasCapability(AudioDeviceCapabilities)
Returns whether or not the audio device has the given capability.
Declaration
public bool HasCapability(AudioDeviceCapabilities capability)
Parameters
Type | Name | Description |
---|---|---|
AudioDeviceCapabilities | capability | the Linphone.AudioDeviceCapabilities to check |
Returns
Type | Description |
---|---|
System.Boolean | true if the audio device has the capability, false otherwise |