nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
sample_rate_converter.h File Reference

Sample Rate Converter library header. More...

#include <zephyr/sys/ring_buffer.h>
#include <dsp/filtering_functions.h>

Go to the source code of this file.

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.
 

Detailed Description

Sample Rate Converter library header.