#include "legato.h"
Go to the source code of this file.
Typedefs | |
typedef struct le_audio_Stream * | le_audio_StreamRef_t |
typedef struct le_audio_Connector * | le_audio_ConnectorRef_t |
Enumerations | |
enum | le_audio_I2SChannel_t { LE_AUDIO_I2S_LEFT, LE_AUDIO_I2S_RIGHT, LE_AUDIO_I2S_MONO, LE_AUDIO_I2S_STEREO, LE_AUDIO_I2S_REVERSE } |
Legato Audio Service include file.
Copyright (C) Sierra Wireless, Inc. 2014. Use of this work is subject to license.
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. |
le_audio_ConnectorRef_t le_audio_CreateConnector | ( | void | ) |
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 | formatPtrNumElements | ||
) |
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] | formatPtrNumElements |
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. |
le_audio_StreamRef_t le_audio_OpenFilePlayback | ( | int | fd | ) |
Open the audio stream for file playback.
[in] | fd | The file descriptor. |
le_audio_StreamRef_t le_audio_OpenFileRecording | ( | int | fd | ) |
Open the audio stream for file recording.
[in] | fd | The file descriptor. |
le_audio_StreamRef_t le_audio_OpenI2sRx | ( | le_audio_I2SChannel_t | mode | ) |
Open the received audio stream of the I2S interface.
[in] | mode | The channel mode. |
le_audio_StreamRef_t le_audio_OpenI2sTx | ( | le_audio_I2SChannel_t | 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.
le_audio_StreamRef_t le_audio_OpenModemVoiceRx | ( | void | ) |
Open the received audio stream of a voice call.
le_audio_StreamRef_t le_audio_OpenModemVoiceTx | ( | void | ) |
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) |
void le_audio_StartClient | ( | const char * | serviceInstanceName | ) |
Start the service for the client main thread
[in] | serviceInstanceName |
void le_audio_StopClient | ( | void | ) |
Stop the service for the current client thread
le_result_t le_audio_Unmute | ( | le_audio_StreamRef_t | streamRef | ) |
Unmute an audio stream.
[in] | streamRef | Audio stream reference. |