![]() |
nRF Connect SDK API 3.3.99
|
| #define I2S_SAMPLES_NUM (BLOCK_SIZE_BYTES / (CONFIG_AUDIO_BIT_DEPTH_OCTETS) / (32 / CONFIG_AUDIO_BIT_DEPTH_BITS)) |
#include <applications/nrf_audio/src/modules/audio_i2s.h>
Calculate number of samples per I2S block.
This macro calculates the number of audio samples in each I2S block, accounting for the bit depth and 32-bit word alignment. The calculation determines how many samples fit within a 32-bit word based on the configured audio bit depth.