#include "dsp.h"
Data Structures | |
struct | dsp16_resampling_options_t |
Options to attribute to the resampling algorithm. More... | |
struct | dsp_resampling_context_t |
This structure is used to store the context of streaming information during resampling process. More... | |
struct | dsp_resampling_t |
This structure is used to store the context of a resampling process. More... | |
Functions | |
void | dsp16_resampling_compute (dsp_resampling_t *dsp_resampling, dsp16_t *output, dsp16_t *input, int channel) |
The re-sampling computation function. More... | |
int | dsp16_resampling_get_output_current_buffer_size (dsp_resampling_t *dsp_resampling) |
Returns the current length in sample of the output signal. More... | |
int | dsp16_resampling_get_output_max_buffer_size (dsp_resampling_t *dsp_resampling) |
Returns the maximal length in sample of the output signal. More... | |
bool | dsp16_resampling_link (dsp_resampling_t *dsp_resampling_output, dsp_resampling_t *dsp_resampling_input) |
Link a stream previously re-sampled using the dsp_resampling_input resampling structure with the new re-sampling structure dsp_resampling_output. This is used to keep the continuity with two pieces of a stream re-sampled using two different re-sampling parameters. More... | |
Resampling setup function | |
typedef void *(* | malloc_fct_t )(int) |
A pointer on a memory allocation function. More... | |
typedef void(* | free_fct_t )(void *) |
A pointer on a memory free function. More... | |
dsp_resampling_t * | dsp16_resampling_setup (int input_sample_rate, int output_sample_rate, int buffer_size, int order, int nb_channels, malloc_fct_t malloc_fct, dsp16_resampling_options_t *options) |
This function is the 16-bit signal resampling setup function. It has to be called only once at the initialization of the resampling process. More... | |
void | dsp16_resampling_free (dsp_resampling_t *dsp_resampling, free_fct_t free_fct) |
Function used to free the previously allocated structure issued by the dsp16_resampling_setup function. More... | |