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

◆ audio_module_data_tx()

int audio_module_data_tx ( struct audio_module_handle * handle,
struct audio_data const *const audio_data,
audio_module_response_cb response_cb )

#include <include/audio_module/audio_module.h>

Send an audio data item to an audio module, all data is consumed by the module.

Note
: The data pointer and its associated size that are passed via the audio data pointer, can be NULL and/or 0. It is the responsibility of the low level module functions to handle this correctly.
Parameters
handle[in/out] The handle for the receiving module instance.
audio_data[in] Pointer to the audio data to send to the module.
response_cb[in] Pointer to a callback to run when the buffer is fully consumed in a module.
Returns
0 if successful, error otherwise.