LC3 Application Functions

[English]

APP_LC3 API Brief

Application

Brief

app_audio_lc3_init()

initialize the LC3 codec relevant settings

app_audio_lc3_downlink_stream_init()

initialize the downlink stream settings

app_audio_lc3_downlink_stream_buffering()

push LC3 downlink stream data into queue

app_audio_lc3_downlink_stream_deinit()

deinitialize the downlink stream settings

app_audio_lc3_set_dec_start()

update LC3 decoder environment member value

app_audio_lc3_rx_downlink_data()

handle LC3 downlink stream data

app_audio_lc3_uplink_stream_init()

initialize the uplink stream settings

app_audio_lc3_uplink_stream_deinit()

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

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

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

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

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

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

deinitialize the uplink stream settings

reset audio environment settings and free LC3 encoder relevant parameters

参数:

iso_handle[in] ISO handle index

返回:

N/A