RetroArch
Classes | Typedefs | Enumerations | Functions | Variables
sinc_resampler.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <retro_inline.h>
#include <filters.h>
#include <memalign.h>
#include <audio/audio_resampler.h>
Include dependency graph for sinc_resampler.c:
This graph shows which files directly or indirectly include this file:

Classes

struct  rarch_sinc_resampler
 

Typedefs

typedef struct rarch_sinc_resampler rarch_sinc_resampler_t
 

Enumerations

enum  sinc_window { SINC_WINDOW_NONE = 0, SINC_WINDOW_KAISER, SINC_WINDOW_LANCZOS }
 

Functions

static void resampler_sinc_process_c (void *re_, struct resampler_data *data)
 
static void resampler_sinc_free (void *data)
 
static void sinc_init_table_kaiser (rarch_sinc_resampler_t *resamp, double cutoff, float *phase_table, int phases, int taps, bool calculate_delta)
 
static void sinc_init_table_lanczos (rarch_sinc_resampler_t *resamp, double cutoff, float *phase_table, int phases, int taps, bool calculate_delta)
 
static voidresampler_sinc_new (const struct resampler_config *config, double bandwidth_mod, enum resampler_quality quality, resampler_simd_mask_t mask)
 

Variables

retro_resampler_t sinc_resampler
 

Typedef Documentation

◆ rarch_sinc_resampler_t

Enumeration Type Documentation

◆ sinc_window

Enumerator
SINC_WINDOW_NONE 
SINC_WINDOW_KAISER 
SINC_WINDOW_LANCZOS 

Function Documentation

◆ resampler_sinc_free()

static void resampler_sinc_free ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resampler_sinc_new()

static void* resampler_sinc_new ( const struct resampler_config config,
double  bandwidth_mod,
enum resampler_quality  quality,
resampler_simd_mask_t  mask 
)
static
Here is the call graph for this function:

◆ resampler_sinc_process_c()

static void resampler_sinc_process_c ( void re_,
struct resampler_data data 
)
static
Here is the caller graph for this function:

◆ sinc_init_table_kaiser()

static void sinc_init_table_kaiser ( rarch_sinc_resampler_t resamp,
double  cutoff,
float *  phase_table,
int  phases,
int  taps,
bool  calculate_delta 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sinc_init_table_lanczos()

static void sinc_init_table_lanczos ( rarch_sinc_resampler_t resamp,
double  cutoff,
float *  phase_table,
int  phases,
int  taps,
bool  calculate_delta 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ sinc_resampler

retro_resampler_t sinc_resampler
Initial value:
= {
"sinc",
"sinc"
}
static void resampler_sinc_free(void *data)
Definition: sinc_resampler.c:443
static void resampler_sinc_process_c(void *re_, struct resampler_data *data)
Definition: sinc_resampler.c:364
#define RESAMPLER_API_VERSION
Definition: audio_resampler.h:66
static void * resampler_sinc_new(const struct resampler_config *config, double bandwidth_mod, enum resampler_quality quality, resampler_simd_mask_t mask)
Definition: sinc_resampler.c:566