|
| LE_MEM_DEFINE_STATIC_POOL (taf_audio_ClientThreadData, LE_CDATA_COMPONENT_COUNT, sizeof(_ClientThreadData_t)) |
|
static le_result_t | InitClientForThread (bool isBlocking) |
|
static _ClientThreadData_t * | GetClientThreadDataPtr (void) |
|
| __attribute__ ((unused)) |
|
static void | ClientThreadDestructor (void *objPtr) |
|
static void | InitCommonData (void) |
|
static le_result_t | DoConnectService (bool isBlocking) |
|
void | taf_audio_ConnectService (void) |
|
le_result_t | taf_audio_TryConnectService (void) |
|
static void | SessionCloseHandler (le_msg_SessionRef_t sessionRef, void *contextPtr) |
|
void | taf_audio_SetServerDisconnectHandler (taf_audio_DisconnectHandler_t disconnectHandler, void *contextPtr) |
|
static void | NonExitSessionCloseHandler (le_msg_SessionRef_t sessionRef, void *contextPtr) |
|
void | taf_audio_SetNonExitServerDisconnectHandler (taf_audio_DisconnectHandler_t disconnectHandler, void *contextPtr) |
|
void | taf_audio_DisconnectService (void) |
|
void | taf_audio_Close (taf_audio_StreamRef_t sRef) |
|
taf_audio_ConnectorRef_t | taf_audio_CreateConnector (void) |
|
void | taf_audio_DeleteConnector (taf_audio_ConnectorRef_t connRef) |
|
le_result_t | taf_audio_Connect (taf_audio_ConnectorRef_t connRef, taf_audio_StreamRef_t sRef) |
|
void | taf_audio_Disconnect (taf_audio_ConnectorRef_t connRef, taf_audio_StreamRef_t sRef) |
|
taf_audio_StreamRef_t | taf_audio_OpenSpeaker (void) |
|
taf_audio_StreamRef_t | taf_audio_OpenMic (void) |
|
taf_audio_StreamRef_t | taf_audio_OpenModemVoiceRx (uint32_t slotId) |
|
taf_audio_StreamRef_t | taf_audio_OpenModemVoiceTx (uint32_t slotId) |
|
le_result_t | taf_audio_PlayDtmf (taf_audio_StreamRef_t streamRef, const char *LE_NONNULL dtmf, uint32_t duration, uint32_t pause) |
|
le_result_t | taf_audio_Mute (taf_audio_StreamRef_t streamRef) |
|
le_result_t | taf_audio_Unmute (taf_audio_StreamRef_t streamRef) |
|
taf_audio_StreamRef_t | taf_audio_OpenPlayer (void) |
|
le_result_t | taf_audio_PlayFile (taf_audio_StreamRef_t streamRef, int fd) |
|
taf_audio_StreamRef_t | taf_audio_OpenRecorder (void) |
|
le_result_t | taf_audio_RecordFile (taf_audio_StreamRef_t streamRef, int fd) |
|
taf_audio_MediaHandlerRef_t | taf_audio_AddMediaHandler (taf_audio_StreamRef_t streamRef, taf_audio_MediaHandlerFunc_t handlerPtr, void *contextPtr) |
|
void | taf_audio_RemoveMediaHandler (taf_audio_MediaHandlerRef_t handlerRef) |
|
taf_audio_DtmfDetectorHandlerRef_t | taf_audio_AddDtmfDetectorHandler (taf_audio_StreamRef_t streamRef, taf_audio_DtmfDetectorHandlerFunc_t handlerPtr, void *contextPtr) |
|
void | taf_audio_RemoveDtmfDetectorHandler (taf_audio_DtmfDetectorHandlerRef_t handlerRef) |
|
le_result_t | taf_audio_Stop (taf_audio_StreamRef_t streamRef) |
|
le_result_t | taf_audio_SetGain (taf_audio_StreamRef_t streamRef, int32_t gain) |
|
le_result_t | taf_audio_GetGain (taf_audio_StreamRef_t streamRef, int32_t *gainPtr) |
|
le_result_t | taf_audio_EnableNoiseSuppressor (taf_audio_StreamRef_t streamRef) |
|
le_result_t | taf_audio_EnableEchoCanceller (taf_audio_StreamRef_t streamRef) |
|
le_result_t | taf_audio_DisableNoiseSuppressor (taf_audio_StreamRef_t streamRef) |
|
le_result_t | taf_audio_DisableEchoCanceller (taf_audio_StreamRef_t streamRef) |
|
le_result_t | taf_audio_IsEchoCancellerEnabled (taf_audio_StreamRef_t streamRef, bool *statusPtr) |
|
le_result_t | taf_audio_IsNoiseSuppressorEnabled (taf_audio_StreamRef_t streamRef, bool *statusPtr) |
|
taf_audio_StreamRef_t | taf_audio_OpenI2sRx (taf_audio_I2SChannel_t mode) |
|
taf_audio_StreamRef_t | taf_audio_OpenI2sTx (taf_audio_I2SChannel_t mode) |
|
taf_audio_StreamRef_t | taf_audio_OpenPcmRx (uint32_t timeslot) |
|
taf_audio_StreamRef_t | taf_audio_OpenPcmTx (uint32_t timeslot) |
|
le_result_t | taf_audio_SetSamplePcmSamplingRate (taf_audio_StreamRef_t streamRef, uint32_t rate) |
|
le_result_t | taf_audio_GetSamplePcmSamplingRate (taf_audio_StreamRef_t streamRef, uint32_t *ratePtr) |
|
le_result_t | taf_audio_SetSamplePcmChannelNumber (taf_audio_StreamRef_t streamRef, uint32_t nbChannel) |
|
le_result_t | taf_audio_GetSamplePcmChannelNumber (taf_audio_StreamRef_t streamRef, uint32_t *nbChannelPtr) |
|
le_result_t | taf_audio_SetEncodingFormat (taf_audio_StreamRef_t streamRef, taf_audio_Format_t format) |
|
le_result_t | taf_audio_GetEncodingFormat (taf_audio_StreamRef_t streamRef, taf_audio_Format_t *formatPtr) |
|
void taf_audio_ConnectService |
( |
void |
| ) |
|
Connect the current client thread to the service providing this API. Block until the service is available.
For each thread that wants to use this API, either ConnectService or TryConnectService must be called before any other functions in this API. Normally, ConnectService is automatically called for the main thread, but not for any other thread. For details, see apiFilesC_client.
This function is created automatically.
Try to connect the current client thread to the service providing this API. Return with an error if the service is not available.
For each thread that wants to use this API, either ConnectService or TryConnectService must be called before any other functions in this API. Normally, ConnectService is automatically called for the main thread, but not for any other thread. For details, see apiFilesC_client.
This function is created automatically.
- Returns
- LE_OK if the client connected successfully to the service.
- LE_UNAVAILABLE if the server is not currently offering the service to which the client is bound.
- LE_NOT_PERMITTED if the client interface is not bound to any service (doesn't have a binding).
- LE_COMM_ERROR if the Service Directory cannot be reached.
void taf_audio_DisconnectService |
( |
void |
| ) |
|
Disconnect the current client thread from the service providing this API.
Normally, this function doesn't need to be called. After this function is called, there's no longer a connection to the service, and the functions in this API can't be used. For details, see apiFilesC_client.
This function is created automatically.