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

◆ audio_module_number_channels_calculate()

int audio_module_number_channels_calculate ( uint32_t  locations,
int8_t *  number_channels 
)

#include <include/audio_module/audio_module.h>

Helper to calculate the number of channels from the channel map for the given audio data.

Parameters
locations[in] Channel locations to calculate the number of channels from.
number_channels[out] Pointer to the calculated number of channels in the audio data.
Returns
0 if successful, error otherwise.