nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ sw_codec_lc3_dec_init()

int sw_codec_lc3_dec_init ( uint16_t  pcm_sample_rate,
uint8_t  pcm_bit_depth,
uint16_t  framesize_us,
uint8_t  num_channels 
)

#include <lc3/include/sw_codec_lc3.h>

Initializes the LC3 decoder and allocates required RAM.

Parameters
[in]pcm_sample_rateSample rate in Hz (typ. 16000 or 48000)
[in]pcm_bit_depthOutput PCM bits per sample.
[in]framesize_usFrame size in microseconds
[in]num_channelsNumber of channels to initialize
Note
The return codes from Zephyr and LC3 may overlap.
Returns
0 on success. -EALREADY if already initialized. Other errors. Refer to LC3 documentation.