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

◆ sw_codec_decode()

int sw_codec_decode ( struct net_buf const *const audio_frame_in,
struct net_buf *const audio_frame_out )

#include <applications/nrf_audio/src/audio/sw_codec_select.h>

Decode encoded data and output PCM data.

Note
Takes in a coded bitstream, will decode either one or multiple channels, based on num_ch set during init.
Parameters
[in]audio_frame_inPointer to the audio input buffer.
[out]audio_frame_outPointer to the audio output buffer.
Returns
0 if success, error codes depends on sw_codec selected.