nRF Connect SDK API 0.1.0
|
Implements functionality to increase or decrease the sample rate of a data array using the CMSIS DSP filtering library. More...
Data Structures | |
struct | buf_ctx |
struct | sample_rate_converter_ctx |
Macros | |
#define | SAMPLE_RATE_CONVERTER_STATE_BUFFER_SIZE |
#define | SAMPLE_RATE_CONVERTER_INPUT_BUFFER_NUMBER_OVERFLOW_SAMPLES 2 |
#define | SAMPLE_RATE_CONVERTER_OUTPUT_BUFFER_NUMBER_OVERFLOW_SAMPLES 6 |
#define | SAMPLE_RATE_CONVERTER_INPUT_BUF_SIZE 0 |
#define | SAMPLE_RATE_CONVERTER_RINGBUF_SIZE 0 |
Enumerations | |
enum | sample_rate_converter_filter { SAMPLE_RATE_FILTER_TEST = 1 , SAMPLE_RATE_FILTER_SIMPLE } |
Functions | |
int | sample_rate_converter_open (struct sample_rate_converter_ctx *ctx) |
Open the sample rate converter for a new context. | |
int | sample_rate_converter_process (struct sample_rate_converter_ctx *ctx, enum sample_rate_converter_filter filter, void const *const input, size_t input_size, uint32_t input_sample_rate, void *const output, size_t output_size, size_t *output_written, uint32_t output_sample_rate) |
Process input samples and produce output samples with new sample rate. | |
Implements functionality to increase or decrease the sample rate of a data array using the CMSIS DSP filtering library.