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

◆ SAMPLE_RATE_CONVERTER_STATE_BUFFER_SIZE

#define SAMPLE_RATE_CONVERTER_STATE_BUFFER_SIZE

#include <include/sample_rate_converter.h>

Value:
(CONFIG_SAMPLE_RATE_CONVERTER_BLOCK_SIZE_MAX + \
CONFIG_SAMPLE_RATE_CONVERTER_MAX_FILTER_SIZE - 1)

Maximum size for the internal state buffers.

The internal state buffer must for each context fulfill the following equations: Interpolation: number of filter taps + block size - 1 Decimation: (number of filter taps / conversion ratio) + block size - 1

The equation for interpolation is used as size as this gives the largest number.