nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ sw_codec_decode()

int sw_codec_decode ( uint8_t const *const  encoded_data,
size_t  encoded_size,
bool  bad_frame,
void **  pcm_data,
size_t *  pcm_size 
)

Decode encoded data and output PCM data.

Parameters
[in]encoded_dataPointer to encoded data.
[in]encoded_sizeSize of encoded data.
[in]bad_frameFlag to indicate a missing/bad frame (only LC3).
[out]pcm_dataPointer to buffer to store decoded PCM data.
[out]pcm_sizeSize of decoded data.
Returns
0 if success, error codes depends on sw_codec selected.