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

◆ audio_module_connect()

int audio_module_connect ( struct audio_module_handle * handle_from,
struct audio_module_handle * handle_to,
bool connect_external )

#include <include/audio_module/audio_module.h>

Connect two audio modules together or connect to the module's TX FIFO.

Note
The function should be called once for every individual connection.
Parameters
handle_from[in/out] The handle for the module for output.
handle_to[in/out] The handle of the module for input, should be NULL if connect_external flag is true.
connect_external[in] Flag to indicate if the from module should put its output audio data items onto its TX FIFO for access via an external system.
Returns
0 if successful, error otherwise.