nrfxlib API 0.1.0
|
int sw_codec_lc3_enc_run | ( | void const *const | pcm_data, |
uint32_t | pcm_data_size, | ||
uint32_t | enc_bitrate, | ||
uint8_t | audio_ch, | ||
uint16_t | lc3_data_buf_size, | ||
uint8_t *const | lc3_data, | ||
uint16_t *const | lc3_data_wr_size | ||
) |
#include <lc3/include/sw_codec_lc3.h>
Runs the LC3 encoder.
[in] | pcm_data | Buffer containing PCM data |
[in] | pcm_data_size | Number of bytes in pcm_data. Note that pcm_data is uint16_t *. |
[in] | enc_bitrate | Bitrate of encoded mono stream (bps). If set to LC3_USE_BITRATE_FROM_INIT the bitrate given to sw_codec_lc3_enc_init() will be used. Consult the LC3 doc for legal values. |
[in] | audio_ch | Index to which channel is being encoded |
[in] | lc3_data_buf_size | Size of supplied LC3 buffer. |
[out] | lc3_data | Pointer to LC3 data output buffer. |
[out] | lc3_data_wr_size | Number of bytes written to lc3_data. |