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

◆ sw_codec_encode()

int sw_codec_encode ( struct net_buf * audio_frame_in,
struct net_buf * audio_frame_out )

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

Encode PCM data and output encoded data.

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