This section introduces the Bluetooth codec APIs including terms and acronyms, supported features, details on how to use the codec, function groups, enums, structures and functions.
More...
This section introduces the Bluetooth codec APIs including terms and acronyms, supported features, details on how to use the codec, function groups, enums, structures and functions.
The Bluetooth codec is used for A2DP and HFP profiles.
|
| bt_media_handle_t * | bt_codec_a2dp_open (bt_codec_a2dp_callback_t callback, const bt_codec_a2dp_audio_t *param) |
| | This function opens the A2DP audio codec. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_close (bt_media_handle_t *handle) |
| | This function closes the A2DP audio codec. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_mix_stream_out (bt_codec_media_hfp_mix_stream_out_method_t mix_method, void *buffer, uint32_t sample_count) |
| | This function mixes a tone to the stream out tone. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_get_mix_stream_out_sample_count (uint32_t *sample_count) |
| | This function queries the sample_count of mix stream out buffer. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_unregister_mix_stream_out_data_callback (void) |
| | This function unregisters the callback function for mix stream out data. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_register_mix_stream_out_data_callback (bt_codec_hfp_mix_stream_out_data_callback_t callback, void *user_data) |
| | This function registers a callback function for mixing stream out data. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_read_stream_in (void *buffer, uint32_t sample_count) |
| | This function receives the streamed in data. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_get_stream_in_sample_count (uint32_t *sample_count) |
| | This function queries the sample_count of the streamed in buffer. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_unregister_get_stream_in_data_callback (void) |
| | This function unregisters the callback function that receives streamed in data. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_register_get_stream_in_data_callback (bt_codec_hfp_get_stream_in_data_callback_t callback, void *user_data) |
| | This function registers the callback function that receives streamed in data. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_read_stream_out (void *buffer, uint32_t sample_count) |
| | Recieve data from stream in. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_get_stream_out_sample_count (uint32_t *sample_count) |
| | Query the sample_count of stream in buffer. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_unregister_get_stream_out_data_callback (void) |
| | Unregister the callback function for getting stream out data. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_register_get_stream_out_data_callback (bt_codec_hfp_get_stream_out_data_callback_t callback, void *user_data) |
| | Register the callback function for get stream out data. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_set_customer_enhanced_stream_in_data (void *buffer, uint32_t sample_count) |
| | set enhanced stream in data stream in. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_get_customer_enhanced_stream_in_sample_count (uint32_t *sample_count) |
| | Query the sample count of enhanced stream in buffer that customer need feedback. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_unregister_customer_enhancement_function_callback (void) |
| | Unregister customer enhancement callback function. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_register_customer_enhancement_function_callback (bt_codec_hfp_customer_enhancement_function_callback_t callback, void *user_data) |
| | Register customer enhancement function. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_set_device_path (bt_codec_hfp_device_path_t device_path) |
| | This function sets the HFP device path. More...
|
| |
| bt_media_handle_t * | bt_codec_hfp_open (bt_codec_hfp_callback_t callback, const bt_codec_hfp_audio_t *param) |
| | This function opens the HFP audio codec. More...
|
| |
| bt_codec_media_status_t | bt_codec_hfp_close (bt_media_handle_t *handle) |
| | This function closes the HFP codec. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_set_flag (bt_media_handle_t *handle, bool flag) |
| | This function sets the advanced wireless stereo flag. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_set_initial_sync (bt_media_handle_t *handle) |
| | This function sets the advanced wireless stereo initial synchronization. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_get_consumed_data_count (bt_media_handle_t *handle, bt_codec_a2dp_data_count_t *information) |
| | This function gets the advanced wireless stereo consumed data count. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_get_silence_frame_information (bt_media_handle_t *handle, bt_codec_a2dp_bitstream_t *information) |
| | This function gets the advanced wireless stereo silence frame information for one silence frame. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_fill_silence_frame (bt_media_handle_t *handle, bt_codec_a2dp_buffer_t *data, uint32_t frame_count) |
| | This function fills the advanced wireless stereo silence frames to target data buffer. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_parse_data_information (bt_media_handle_t *handle, bt_codec_a2dp_buffer_t *data, bt_codec_a2dp_bitstream_t *information) |
| | This function parses the advanced wireless stereo packet data information. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_get_clock_skew_status (bt_media_handle_t *handle, bt_codec_aws_clock_skew_status_t *status) |
| | This function gets the advanced wireless stereo clock skew status. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_set_clock_skew_compensation_value (bt_media_handle_t *handle, int32_t sample_count) |
| | This function sets the advanced wireless stereo clock skew compensation value. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_get_audio_latency (bt_media_handle_t *handle, uint32_t sampling_rate, uint32_t *latency_us) |
| | This function gets the advanced wireless stereo audio latency. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_set_sw_aac_flag (bool flag) |
| | This function sets the software AAC DECODER for Bluetooth A2DP. More...
|
| |
| bool | bt_codec_a2dp_get_sw_aac_flag (void) |
| | This function gets the software AAC DECODER for Bluetooth A2DP. More...
|
| |
| bt_codec_media_status_t | bt_codec_a2dp_aws_set_clock_skew (bool flag) |
| | This function sets the clock skew flag. More...
|
| |