![]() |
nrfxlib API 3.3.99
|
| 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.
| [in] | encoder_sample_rate | Encoder sample rate in Hz |
| [in] | decoder_sample_rate | Decoder sample rate in Hz |
| [in] | sw_codec_lc3_buffer | Pointer to a memory buffer |
| [in,out] | sw_codec_lc3_buffer_size | Size of the memory buffer passed in, number of bytes used returned |
| [in] | framesize_us | Frame size in microseconds |