Advanced Audio Distribution Profile.
More...
Advanced Audio Distribution Profile.
Wiced audio sink initialization.
- Parameters
-
p_cfg | pointer to the sink config structure |
- Returns
- wiced_result_t (WICED_BT_XXX)
API to configure the sink to perform SBC decoding and to route the decoded audio data over I2S or UART on starting the streaming.
Called by the application when the streaming is to be started
- Parameters
-
handle | AVDT connection handle |
audio_route | - Audio route to be used to send the decoded audio data, I2S or UART |
cp_type | Content protection type. Refer AVDT_CP_TYPE defined in wiced_bt_avdt.h |
p_codec_info | Codec information |
- Returns
- wiced_result_t (WICED_BT_XXX)
wiced_result_t wiced_audio_sink_mute |
( |
wiced_bool_t |
enable, |
|
|
uint16_t |
ramp_ms |
|
) |
| |
To mute/unmute the audio.
Called by the application to mute the audio when playing the music. Application shall this function to unmute also to restart playing the music
- Parameters
-
enable | 1 to mute, 0 to unmute |
ramp_ms | ramp up/down time in milli seconds |
- Returns
- wiced_result_t (WICED_BT_XXX)
API to reset the sink on stopping the streaming.
Called by the application when the streaming is stopped
- Parameters
-
handle | AVDT connection handle |
- Returns
- wiced_result_t (WICED_BT_XXX)
uint8_t wiced_bt_a2d_bits_set |
( |
uint8_t |
mask | ) |
|
Function wiced_bt_a2d_bits_set.
Check the number of bits set in a given mask (used to parse stream configuration masks)
- Parameters
-
- Returns
- A2D_SET_ONE_BIT, if one and only one bit is set A2D_SET_ZERO_BIT, if all bits clear A2D_SET_MULTL_BIT, if multiple bits are set
Function wiced_bt_a2d_find_service.
Performs Service Discovery and fetches SRC/SINK SDP Record Info. Information is returned for the first service record found on the server that matches the service UUID.There can only be one outstanding call to wiced_bt_a2d_find_service() at a time; the application must wait for the callback before it makes another call to the function.
- Parameters
-
[in] | service_uuid | : Indicates SRC or SNK. |
[in] | bd_addr | : BD address of the peer device. |
[in] | p_db | : Pointer to the information to initialize the discovery database. |
[in] | p_cback | : Pointer to the wiced_bt_a2d_find_service() callback function. |
- Returns
- wiced_bt_a2d_status_t