RetroArch
Classes | Typedefs | Enumerations | Functions
samplerate.h File Reference

Go to the source code of this file.

Classes

struct  SRC_DATA
 
struct  SRC_CB_DATA
 

Typedefs

typedef struct SRC_STATE_tag SRC_STATE
 
typedef long(* src_callback_t) (void *cb_data, float **data)
 

Enumerations

enum  {
  SRC_SINC_BEST_QUALITY = 0, SRC_SINC_MEDIUM_QUALITY = 1, SRC_SINC_FASTEST = 2, SRC_ZERO_ORDER_HOLD = 3,
  SRC_LINEAR = 4
}
 

Functions

SRC_STATEsrc_new (int converter_type, int channels, int *error)
 
SRC_STATEsrc_callback_new (src_callback_t func, int converter_type, int channels, int *error, void *cb_data)
 
SRC_STATEsrc_delete (SRC_STATE *state)
 
int src_process (SRC_STATE *state, SRC_DATA *data)
 
long src_callback_read (SRC_STATE *state, double src_ratio, long frames, float *data)
 
int src_simple (SRC_DATA *data, int converter_type, int channels)
 
const char * src_get_name (int converter_type)
 
const char * src_get_description (int converter_type)
 
const char * src_get_version (void)
 
int src_set_ratio (SRC_STATE *state, double new_ratio)
 
int src_reset (SRC_STATE *state)
 
int src_is_valid_ratio (double ratio)
 
int src_error (SRC_STATE *state)
 
const char * src_strerror (int error)
 
void src_short_to_float_array (const short *in, float *out, int len)
 
void src_float_to_short_array (const float *in, short *out, int len)
 

Typedef Documentation

◆ src_callback_t

typedef long(* src_callback_t) (void *cb_data, float **data)

◆ SRC_STATE

typedef struct SRC_STATE_tag SRC_STATE

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SRC_SINC_BEST_QUALITY 
SRC_SINC_MEDIUM_QUALITY 
SRC_SINC_FASTEST 
SRC_ZERO_ORDER_HOLD 
SRC_LINEAR 

Function Documentation

◆ src_callback_new()

SRC_STATE* src_callback_new ( src_callback_t  func,
int  converter_type,
int  channels,
int *  error,
void cb_data 
)

◆ src_callback_read()

long src_callback_read ( SRC_STATE state,
double  src_ratio,
long  frames,
float *  data 
)

◆ src_delete()

SRC_STATE* src_delete ( SRC_STATE state)

◆ src_error()

int src_error ( SRC_STATE state)

◆ src_float_to_short_array()

void src_float_to_short_array ( const float *  in,
short *  out,
int  len 
)

◆ src_get_description()

const char* src_get_description ( int  converter_type)

◆ src_get_name()

const char* src_get_name ( int  converter_type)

◆ src_get_version()

const char* src_get_version ( void  )

◆ src_is_valid_ratio()

int src_is_valid_ratio ( double  ratio)

◆ src_new()

SRC_STATE* src_new ( int  converter_type,
int  channels,
int *  error 
)

◆ src_process()

int src_process ( SRC_STATE state,
SRC_DATA data 
)

◆ src_reset()

int src_reset ( SRC_STATE state)

◆ src_set_ratio()

int src_set_ratio ( SRC_STATE state,
double  new_ratio 
)

◆ src_short_to_float_array()

void src_short_to_float_array ( const short *  in,
float *  out,
int  len 
)

◆ src_simple()

int src_simple ( SRC_DATA data,
int  converter_type,
int  channels 
)

◆ src_strerror()

const char* src_strerror ( int  error)