![]() |
AIROC™ BTSDK v4.9 - Documentation | |||
(c) 2016-2025, Infineon Technologies AG, or an affiliate of Infineon Technologies AG. More...
Data Structures | |
| struct | codec_config_t |
| Codec configuration. More... | |
| struct | audio_config_t |
| Audio configuration. More... | |
| struct | nrec_config_t |
| NREC configuration. More... | |
| struct | stream_interface_t |
| Stream Interface Functions. More... | |
| struct | capture_stream_interface_t |
| Capture stream interface. More... | |
| struct | render_stream_interface_t |
| Render stream interface. More... | |
Enumerations | |
| enum | stream_type_t { CAPTURE, RENDER, FILE_PLAYBACK, A2DP_PLAYBACK, HFP, MAX_NO_OF_STREAMS, STREAM_TYPE_INVALD = MAX_NO_OF_STREAMS } |
| Audio Streams. More... | |
| enum | param_type_t { AM_CODEC_CONFIG, AM_AUDIO_CONFIG, AM_SAMPLE_RATE, AM_CHANNELS, AM_BITS_PER_SAMPLE, AM_MIC_GAIN_LEVEL, AM_SPEAKER_VOL_LEVEL, AM_NREC_ENABLE, AM_NREC_DISABLE, AM_GAIN_CONFIG, AM_NREC_CONFIG, AM_IO_DEVICE } |
| Audio Parameter types. More... | |
| enum | am_audio_io_device_t { AM_SPEAKERS, AM_HEADPHONES, AM_UART } |
| audio output type | |
Functions | |
| void | wiced_am_init (void) |
| The application should call this function to Initialize the Audio Manager. More... | |
| int32_t | wiced_am_stream_open (uint32_t stream_type) |
| The application should call this function to open the stream This will construct the graph of various components in the chain based on the stream type. More... | |
| wiced_result_t | wiced_am_stream_start (int32_t stream_id) |
| The application should call this function to start the stream. More... | |
| wiced_result_t | wiced_am_stream_stop (int32_t stream_id) |
| The application should call this function to stop the stream. More... | |
| wiced_result_t | wiced_am_stream_close (int32_t stream_id) |
| The application should call this function to close the stream. More... | |
| wiced_result_t | wiced_am_stream_set_param (int32_t stream_id, uint32_t param_type, void *param_config) |
| The application should call this function to set the parameters of the stream. More... | |
| int32_t | wiced_am_stream_get_param (uint32_t stream_id, uint32_t param_type, void *param_config) |
| The application should call this function to get parameters of the stream. More... | |
| stream_interface_t * | wiced_am_stream_get_intf (uint32_t stream_id, uint32_t inf_type) |
| The application should call this function to get interface of the stream. More... | |
(c) 2016-2025, Infineon Technologies AG, or an affiliate of Infineon Technologies AG.
All rights reserved. This software, associated documentation and materials ("Software") is owned by Infineon Technologies AG or one of its affiliates ("Infineon") and is protected by and subject to worldwide patent protection, worldwide copyright laws, and international treaty provisions. Therefore, you may use this Software only as provided in the license agreement accompanying the software package from which you obtained this Software. If no license agreement applies, then any use, reproduction, modification, translation, or compilation of this Software is prohibited without the express written permission of Infineon.
Disclaimer: UNLESS OTHERWISE EXPRESSLY AGREED WITH INFINEON, THIS SOFTWARE IS PROVIDED AS-IS, WITH NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, ALL WARRANTIES OF NON-INFRINGEMENT OF THIRD-PARTY RIGHTS AND IMPLIED WARRANTIES SUCH AS WARRANTIES OF FITNESS FOR A SPECIFIC USE/PURPOSE OR MERCHANTABILITY. Infineon reserves the right to make changes to the Software without notice. You are responsible for properly designing, programming, and testing the functionality and safety of your intended application of the Software, as well as complying with any legal requirements related to its use. Infineon does not guarantee that the Software will be free from intrusion, data theft or loss, or other breaches ("Security Breaches"), and Infineon shall have no liability arising out of any Security Breaches. Unless otherwise explicitly approved by Infineon, the Software may not be used in any application where a failure of the Product or any consequences of the use thereof can reasonably be expected to result in personal injury.
Audio manager is a high level interface for applications to use platform audio capabilities. It supports different streams like A2DP_PLAYBACK, HFP etc. Audio manager also has interface for specific stream Start, Stop and also stream specific volume control.
| enum param_type_t |
Audio Parameter types.
| enum stream_type_t |
| void wiced_am_init | ( | void | ) |
The application should call this function to Initialize the Audio Manager.
| NO | parameters required. |
| wiced_result_t wiced_am_stream_close | ( | int32_t | stream_id | ) |
The application should call this function to close the stream.
| stream_id | : Id of the stream. |
| stream_interface_t* wiced_am_stream_get_intf | ( | uint32_t | stream_id, |
| uint32_t | inf_type | ||
| ) |
The application should call this function to get interface of the stream.
| stream_id | : Id of the stream. |
| inf_type | : Interface type. |
| int32_t wiced_am_stream_get_param | ( | uint32_t | stream_id, |
| uint32_t | param_type, | ||
| void * | param_config | ||
| ) |
The application should call this function to get parameters of the stream.
| stream_id | : Id of the stream. |
| param_type | : Type of the parameters to be set. |
| param_config | Parameter configurations |
| int32_t wiced_am_stream_open | ( | uint32_t | stream_type | ) |
The application should call this function to open the stream This will construct the graph of various components in the chain based on the stream type.
| stream_type | : Type of the stream to register (stream_type_t) |
| args | : Arguments to be passed if any. |
| wiced_result_t wiced_am_stream_set_param | ( | int32_t | stream_id, |
| uint32_t | param_type, | ||
| void * | param_config | ||
| ) |
The application should call this function to set the parameters of the stream.
| stream_id | : Id of the stream. |
| param_type | : Type of the parameters to be set. |
| param_config | Parameter configurations |
| wiced_result_t wiced_am_stream_start | ( | int32_t | stream_id | ) |
The application should call this function to start the stream.
| stream_id | : Id of the stream. |
| wiced_result_t wiced_am_stream_stop | ( | int32_t | stream_id | ) |
The application should call this function to stop the stream.
| stream_id | : Id of the stream. |