nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ sw_codec_lc3_single_rate_init()

int sw_codec_lc3_single_rate_init ( uint16_t encoder_sample_rate,
uint16_t decoder_sample_rate,
uint8_t * sw_codec_lc3_buffer,
uint32_t * sw_codec_lc3_buffer_size,
uint16_t framesize_us )

#include <lc3/include/sw_codec_lc3.h>

Initializes the LC3 Codec with a single sample rate for encoder and decoder.

This function initializes the LC3 codec enabling only the requested sample rate for encoder and decoder, which decreases RAM usage and initialization time compared to sw_codec_lc3_init() which enables all supported sample rates.

Parameters
[in]encoder_sample_rateEncoder sample rate in Hz
[in]decoder_sample_rateDecoder sample rate in Hz
[in]sw_codec_lc3_bufferPointer to a memory buffer
[in,out]sw_codec_lc3_buffer_sizeSize of the memory buffer passed in, number of bytes used returned
[in]framesize_usFrame size in microseconds