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

◆ data_process

int(* audio_module_functions::data_process) (struct audio_module_handle_private *handle, struct audio_data const *const audio_data_rx, struct audio_data *audio_data_tx)

The core data processing for an audio module. Can be either an input, output or input/output module type.

Note
This is a mandatory function for an audio module.
Parameters
handle[in/out] The handle to the module instance.
audio_data_rx[in] Pointer to the input audio data or NULL for an input module.
audio_data_tx[out] Pointer to the output audio data or NULL for an output module.
Returns
0 if successful, error otherwise.