Liblinphone
5.3.0
|
Typedefs | |
typedef struct _LinphoneAudioDevice | LinphoneAudioDevice |
Object holding audio device information. More... | |
typedef enum _LinphoneAudioDeviceType | LinphoneAudioDeviceType |
LinphoneAudioDeviceType enum represents the different types of an audio device. | |
typedef enum _LinphoneAudioDeviceCapabilities | LinphoneAudioDeviceCapabilities |
LinphoneAudioDeviceCapabilities enum represents whether a device can record audio, play audio or both | |
Enumerations | |
enum | _LinphoneAudioDeviceType { LinphoneAudioDeviceTypeUnknown = 0, LinphoneAudioDeviceTypeMicrophone = 1, LinphoneAudioDeviceTypeEarpiece = 2, LinphoneAudioDeviceTypeSpeaker = 3, LinphoneAudioDeviceTypeBluetooth = 4, LinphoneAudioDeviceTypeBluetoothA2DP = 5, LinphoneAudioDeviceTypeTelephony = 6, LinphoneAudioDeviceTypeAuxLine = 7, LinphoneAudioDeviceTypeGenericUsb = 8, LinphoneAudioDeviceTypeHeadset = 9, LinphoneAudioDeviceTypeHeadphones = 10, LinphoneAudioDeviceTypeHearingAid = 11 } |
LinphoneAudioDeviceType enum represents the different types of an audio device. More... | |
enum | _LinphoneAudioDeviceCapabilities { LinphoneAudioDeviceCapabilityRecord = 1 << 0, LinphoneAudioDeviceCapabilityPlay = 1 << 1, LinphoneAudioDeviceCapabilityAll = 3 } |
LinphoneAudioDeviceCapabilities enum represents whether a device can record audio, play audio or both More... | |
typedef struct _LinphoneAudioDevice LinphoneAudioDevice |
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 LinphoneAudioDevice objects to configure default input/output devices or do it dynamically during a call.
To get the list of available devices, use linphone_core_get_audio_devices(). This list will be limited to one device of each type. Use linphone_core_get_extended_audio_devices() for a complete list.
LinphoneAudioDeviceCapabilities enum represents whether a device can record audio, play audio or both
Enumerator | |
---|---|
LinphoneAudioDeviceCapabilityRecord | Can record audio. |
LinphoneAudioDeviceCapabilityPlay | Can play audio. |
LinphoneAudioDeviceCapabilityAll | Can play and record audio. |
LinphoneAudioDeviceType enum represents the different types of an audio device.
LinphoneAudioDeviceCapabilities linphone_audio_device_get_capabilities | ( | const LinphoneAudioDevice * | audio_device | ) |
Returns the capabilities of the device.
audio_device | the LinphoneAudioDevice. |
const char* linphone_audio_device_get_device_name | ( | const LinphoneAudioDevice * | audio_device | ) |
Returns the name of the audio device.
audio_device | the LinphoneAudioDevice. |
const char* linphone_audio_device_get_driver_name | ( | const LinphoneAudioDevice * | audio_device | ) |
Returns the driver name used by the device.
audio_device | the LinphoneAudioDevice. |
const char* linphone_audio_device_get_id | ( | const LinphoneAudioDevice * | audio_device | ) |
Returns the id of the audio device.
audio_device | the LinphoneAudioDevice. |
LinphoneAudioDeviceType linphone_audio_device_get_type | ( | const LinphoneAudioDevice * | audio_device | ) |
Returns the type of the device.
audio_device | the LinphoneAudioDevice. |
bool_t linphone_audio_device_has_capability | ( | const LinphoneAudioDevice * | audio_device, |
const LinphoneAudioDeviceCapabilities | capability | ||
) |
Returns whether or not the audio device has the given capability.
audio_device | the LinphoneAudioDevice. |
capability | the LinphoneAudioDeviceCapabilities to check |
LinphoneAudioDevice* linphone_audio_device_ref | ( | LinphoneAudioDevice * | audio_device | ) |
Takes a reference on a LinphoneAudioDevice.
audio_device | the LinphoneAudioDevice. |
void linphone_audio_device_unref | ( | LinphoneAudioDevice * | audio_device | ) |
Releases a LinphoneAudioDevice.
audio_device | the LinphoneAudioDevice. |
bctbx_list_t* linphone_core_get_audio_devices | ( | const LinphoneCore * | core | ) |
Returns a list of audio devices, with only the first device for each type To have the list of all audio devices, use linphone_core_get_extended_audio_devices()
core | The LinphoneCore |
const LinphoneAudioDevice* linphone_core_get_default_input_audio_device | ( | const LinphoneCore * | core | ) |
Gets the default input audio device.
core | The LinphoneCore |
const LinphoneAudioDevice* linphone_core_get_default_output_audio_device | ( | const LinphoneCore * | core | ) |
Gets the default output audio device.
core | The LinphoneCore |
bctbx_list_t* linphone_core_get_extended_audio_devices | ( | const LinphoneCore * | core | ) |
Returns the list of all audio devices.
core | The LinphoneCore |
const LinphoneAudioDevice* linphone_core_get_input_audio_device | ( | const LinphoneCore * | core | ) |
Gets the input audio device for the current call.
core | The LinphoneCore |
const LinphoneAudioDevice* linphone_core_get_output_audio_device | ( | const LinphoneCore * | core | ) |
Gets the output audio device for the current call.
core | The LinphoneCore |
void linphone_core_set_default_input_audio_device | ( | LinphoneCore * | core, |
LinphoneAudioDevice * | audio_device | ||
) |
Sets the given LinphoneAudioDevice as default input for next calls.
core | The LinphoneCore |
audio_device | The LinphoneAudioDevice |
void linphone_core_set_default_output_audio_device | ( | LinphoneCore * | core, |
LinphoneAudioDevice * | audio_device | ||
) |
Sets the given LinphoneAudioDevice as default output for next calls.
core | The LinphoneCore |
audio_device | The LinphoneAudioDevice |
void linphone_core_set_input_audio_device | ( | LinphoneCore * | core, |
LinphoneAudioDevice * | audio_device | ||
) |
Sets the given LinphoneAudioDevice as input for all active calls.
core | The LinphoneCore |
audio_device | The LinphoneAudioDevice. NULL does nothing. |
void linphone_core_set_output_audio_device | ( | LinphoneCore * | core, |
LinphoneAudioDevice * | audio_device | ||
) |
Sets the given LinphoneAudioDevice as output for all active calls.
core | The LinphoneCore |
audio_device | The LinphoneAudioDevice. NULL does nothing. |