Go to the source code of this file.
Legato Audio Service include file.
Copyright (C) Sierra Wireless, Inc. 2013. All rights reserved. Use of this work is subject to license.
Legato Audio Service include file.
Copyright (C) Sierra Wireless, Inc. 2013. All rights reserved.
typedef struct le_audio_Connector* le_audio_ConnectorRef_t |
Reference type for Audio Connector
typedef struct le_audio_Stream* le_audio_StreamRef_t |
Reference type for Audio Stream
void le_audio_Close | ( | le_audio_StreamRef_t | streamRef | ) |
Close an audio stream. If several users own the stream reference, the interface closes only after the last user closes the audio stream.
[in] | streamRef | Audio stream reference. |
le_result_t le_audio_Connect | ( | le_audio_ConnectorRef_t | connectorRef, |
le_audio_StreamRef_t | streamRef | ||
) |
Connect an audio stream to the connector reference.
[in] | connectorRef | Connector reference. |
[in] | streamRef | Audio stream reference. |
Create an audio connector reference.
void le_audio_DeleteConnector | ( | le_audio_ConnectorRef_t | connectorRef | ) |
Delete an audio connector reference.
[in] | connectorRef | Connector reference. |
void le_audio_Disconnect | ( | le_audio_ConnectorRef_t | connectorRef, |
le_audio_StreamRef_t | streamRef | ||
) |
Disconnect an audio stream from the connector reference.
[in] | connectorRef | Connector reference. |
[in] | streamRef | Audio stream reference. |
le_result_t le_audio_GetFormat | ( | le_audio_StreamRef_t | streamRef, |
char * | formatPtr, | ||
size_t | len | ||
) |
Get the audio format of an input or output stream.
[in] | streamRef | The audio stream reference. |
[out] | formatPtr | The name of the audio encoding as used by the Real-Time Protocol (RTP), specified by the IANA organisation. |
[in] | len | The length of format string. |
le_result_t le_audio_GetGain | ( | le_audio_StreamRef_t | streamRef, |
uint32_t * | gainPtr | ||
) |
Get the Gain value of an input or output stream.
[in] | streamRef | Audio stream reference. |
[out] | gainPtr | Gain value [0..100] (0 means 'muted', 100 is the maximum gain value) |
le_result_t le_audio_Mute | ( | le_audio_StreamRef_t | streamRef | ) |
Mute an audio stream.
[in] | streamRef | The audio stream reference. |
Open the received audio stream of the I2S interface.
[in] | mode | The channel mode. |
Open the transmitted audio stream of the I2S interface.
[in] | mode | The channel mode. |
le_audio_StreamRef_t le_audio_OpenMic | ( | void | ) |
Open the Microphone.
Open the received audio stream of a voice call.
Open the transmitted audio stream of a voice call.
le_audio_StreamRef_t le_audio_OpenPcmRx | ( | uint32_t | timeslot | ) |
Open the received audio stream of the PCM interface.
[in] | timeslot | The time slot number. |
le_audio_StreamRef_t le_audio_OpenPcmTx | ( | uint32_t | timeslot | ) |
Open the transmitted audio stream of the PCM interface.
[in] | timeslot | The time slot number. |
le_audio_StreamRef_t le_audio_OpenSpeaker | ( | void | ) |
Open the Speakerphone.
le_audio_StreamRef_t le_audio_OpenUsbRx | ( | void | ) |
Open the received audio stream of an USB audio class.
le_audio_StreamRef_t le_audio_OpenUsbTx | ( | void | ) |
Open the transmitted audio stream of an USB audio class.
le_result_t le_audio_SetGain | ( | le_audio_StreamRef_t | streamRef, |
uint32_t | gain | ||
) |
Set the Gain value of an input or output stream.
[in] | streamRef | Audio stream reference. |
[in] | gain | Gain value [0..100] (0 means 'muted', 100 is the maximum gain value) |
le_result_t le_audio_Unmute | ( | le_audio_StreamRef_t | streamRef | ) |
Unmute an audio stream.
[in] | streamRef | Audio stream reference. |