nrfxlib API 2.8.99
|
int sw_codec_lc3_enc_init | ( | uint16_t | pcm_sample_rate, |
uint8_t | pcm_bit_depth, | ||
uint16_t | framesize_us, | ||
uint32_t | enc_bitrate, | ||
uint8_t | num_channels, | ||
uint16_t *const | pcm_bytes_req ) |
#include <lc3/include/sw_codec_lc3.h>
Initializes the LC3 encoder and allocates required RAM.
[in] | pcm_sample_rate | Sample rate in Hz (typ. 16000 or 48000) |
[in] | pcm_bit_depth | Number of bits in sample (typ. 16 or 24) |
[in] | framesize_us | Frame size in microseconds |
[in] | enc_bitrate | Bitrate of encoded mono stream (bps) (typ. 24000 - 160000). Consult the LC3 doc for legal values. |
[in] | num_channels | Number of channels to initialize |
[out] | pcm_bytes_req | PCM bytes required to encode a frame. |