![]() |
nRF Connect SDK API 3.3.99
|
| #define FRAME_SIZE_BYTES ((CONFIG_I2S_LRCK_FREQ_HZ / 1000 * 10) * CONFIG_I2S_CH_NUM * CONFIG_AUDIO_BIT_DEPTH_OCTETS) |
#include <applications/nrf_audio/src/modules/audio_i2s.h>
Calculate frame size in bytes based on audio configuration.
This macro calculates the number of bytes in one audio frame based on the configured I2S sample rate, number of channels, and bit depth. The frame duration can be either 10 ms or 7.5 ms.