RetroArch
Classes | Macros | Functions | Variables
vibrato.c File Reference
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <retro_miscellaneous.h>
#include <libretro_dspfilter.h>
#include <string/stdstring.h>
Include dependency graph for vibrato.c:

Classes

struct  vibrato_core
 
struct  vibrato
 

Macros

#define sqr(a)   ((a) * (a))
 

Functions

float hermite_interp (float x, float *y)
 
static void vibrato_free (void *data)
 
static void vibratocore_init (struct vibrato_core *core, float depth, int samplerate, float freq)
 
float vibratocore_core (struct vibrato_core *core, float in)
 
static void vibrato_process (void *data, struct dspfilter_output *output, const struct dspfilter_input *input)
 
static voidvibrato_init (const struct dspfilter_info *info, const struct dspfilter_config *config, void *userdata)
 
const struct dspfilter_implementationdspfilter_get_implementation (dspfilter_simd_mask_t mask)
 

Variables

const float BASE_DELAY_SEC = 0.002
 
const float VIBRATO_FREQUENCY_DEFAULT_HZ = 2
 
const float VIBRATO_FREQUENCY_MAX_HZ = 14
 
const float VIBRATO_DEPTH_DEFAULT_PERCENT = 50
 
const int add_delay = 3
 
static const struct dspfilter_implementation vibrato_plug
 

Macro Definition Documentation

◆ sqr

#define sqr (   a)    ((a) * (a))

Function Documentation

◆ dspfilter_get_implementation()

const struct dspfilter_implementation* dspfilter_get_implementation ( dspfilter_simd_mask_t  mask)
Here is the call graph for this function:

◆ hermite_interp()

float hermite_interp ( float  x,
float *  y 
)
Here is the caller graph for this function:

◆ vibrato_free()

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

◆ vibrato_init()

static void* vibrato_init ( const struct dspfilter_info info,
const struct dspfilter_config config,
void userdata 
)
static
Here is the call graph for this function:

◆ vibrato_process()

static void vibrato_process ( void data,
struct dspfilter_output output,
const struct dspfilter_input input 
)
static
Here is the call graph for this function:

◆ vibratocore_core()

float vibratocore_core ( struct vibrato_core core,
float  in 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ vibratocore_init()

static void vibratocore_init ( struct vibrato_core core,
float  depth,
int  samplerate,
float  freq 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ add_delay

const int add_delay = 3

◆ BASE_DELAY_SEC

const float BASE_DELAY_SEC = 0.002

◆ VIBRATO_DEPTH_DEFAULT_PERCENT

const float VIBRATO_DEPTH_DEFAULT_PERCENT = 50

◆ VIBRATO_FREQUENCY_DEFAULT_HZ

const float VIBRATO_FREQUENCY_DEFAULT_HZ = 2

◆ VIBRATO_FREQUENCY_MAX_HZ

const float VIBRATO_FREQUENCY_MAX_HZ = 14

◆ vibrato_plug

const struct dspfilter_implementation vibrato_plug
static
Initial value:
= {
"Vibrato",
"vibrato",
}
static void * vibrato_init(const struct dspfilter_info *info, const struct dspfilter_config *config, void *userdata)
Definition: vibrato.c:133
static void vibrato_free(void *data)
Definition: vibrato.c:66
#define DSPFILTER_API_VERSION
Definition: libretro_dspfilter.h:61
static void vibrato_process(void *data, struct dspfilter_output *output, const struct dspfilter_input *input)
Definition: vibrato.c:113