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 AudioDevice objects to configure default input/output devices or do it dynamically during a call. To get the list of available devices, use AudioDevices. This list will be limited to one device of each type. Use 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 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. |
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 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 AudioDeviceCapabilities to check |
Returns
Type | Description |
---|---|
System.Boolean | true if the audio device has the capability, false otherwise |