LC3 Application Functions
APP_LC3 API Brief
Application |
Brief |
|---|---|
initialize the LC3 codec relevant settings |
|
initialize the downlink stream settings |
|
push LC3 downlink stream data into queue |
|
deinitialize the downlink stream settings |
|
update LC3 decoder environment member value |
|
handle LC3 downlink stream data |
|
initialize the uplink stream settings |
|
deinitialize the uplink stream settings |
APP_LC3 API Reference
Header File
Functions
-
void app_audio_lc3_init(void)
initialize the LC3 codec relevant settings
set codec to LC3 and initialize audio environment settings
- 返回:
N/A
-
void app_audio_lc3_downlink_stream_init(le_audio_lc3_stream_info_t *p_lc3_stream_info, uint8_t vol)
initialize the downlink stream settings
set LC3 decoder relevant parameters and initialize LC3 decoder
- 参数:
p_lc3_stream_info – [in] stream information strcut @le_audio_lc3_stream_info_t
vol – [in] stream volume information
- 返回:
N/A
-
void app_audio_lc3_downlink_stream_buffering(uint8_t *p_data, uint32_t dlen, uint32_t seq)
push LC3 downlink stream data into queue
make a copy of LC3 downlink stream data, push it into decoder queue
- 参数:
p_data – [in] pointer to LC3 downlink stream data
dlen – [in] data length
seq – [in] sequential number
- 返回:
N/A
-
void app_audio_lc3_downlink_stream_deinit(uint16_t iso_handle)
deinitialize the downlink stream settings
reset audio environment settings and free LC3 decoder relevant parameters
- 参数:
iso_handle – [in] ISO handle index
- 返回:
N/A
-
void app_audio_lc3_set_dec_start(bool start)
update LC3 decoder environment member value
update LC3 decoder environment member value, need set it start before receive downlink stream data
- 参数:
start – [in] boolean value for start or not
- 返回:
N/A
-
void app_audio_lc3_rx_downlink_data(le_audio_lc3_stream_t *p_lc3_stream)
handle LC3 downlink stream data
push data into queue by using @app_audio_lc3_downlink_stream_buffering and start decode when queue buffer size large than threshold
- 参数:
p_lc3_stream – [in] LC3 downlink stream data send by lower layer
- 返回:
N/A
-
void app_audio_lc3_uplink_stream_init(le_audio_lc3_stream_info_t *p_lc3_stream_info)
initialize the uplink stream settings
set LC3 encoder relevant parameters and initialize LC3 encoder
- 参数:
p_lc3_stream_info – [in] stream information strcut @le_audio_lc3_stream_info_t
- 返回:
N/A
-
void app_audio_lc3_uplink_stream_deinit(uint16_t iso_handle)
deinitialize the uplink stream settings
reset audio environment settings and free LC3 encoder relevant parameters
- 参数:
iso_handle – [in] ISO handle index
- 返回:
N/A