nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ sw_codec_lc3_dec_run()

int sw_codec_lc3_dec_run ( uint8_t const *const lc3_data,
uint16_t lc3_data_size,
uint16_t pcm_data_buf_size,
uint8_t audio_ch,
void *const pcm_data,
uint16_t *const pcm_data_wr_size,
bool bad_frame )

#include <lc3/include/sw_codec_lc3.h>

Runs the LC3 decoder.

Parameters
[in]lc3_dataBuffer containing LC3 data.
[in]lc3_data_sizeNumber of bytes in lc3_data.
[in]pcm_data_buf_sizeSize of supplied pcm_data buffer
[in]audio_chIndex to which channel is being decoded
[out]pcm_dataPointer to PCM data output buffer.
[out]pcm_data_wr_sizeNumber of bytes written to pcm_data
[out]bad_frameBad frame indicator. Refer to LC3 doc.
Note
The return codes from Zephyr and LC3 may overlap.
Returns
0 on success. -EPERM Decoder is not initialized. Other errors. Refer to LC3 documentation.