aubio  0.4.0
 All Data Structures Files Functions Variables Typedefs Macros
Typedefs | Functions
resampler.h File Reference

Resampling object. More...

Go to the source code of this file.

Typedefs

typedef struct _aubio_resampler_t aubio_resampler_t
 resampler object
 

Functions

aubio_resampler_tnew_aubio_resampler (smpl_t ratio, uint_t type)
 create resampler object More...
 
void del_aubio_resampler (aubio_resampler_t *s)
 delete resampler object
 
void aubio_resampler_do (aubio_resampler_t *s, fvec_t *input, fvec_t *output)
 resample input in output More...
 

Detailed Description

Resampling object.

This object resamples an input vector into an output vector using libsamplerate. See http://www.mega-nerd.com/SRC/

Definition in file resampler.h.

Function Documentation

void aubio_resampler_do ( aubio_resampler_t s,
fvec_t input,
fvec_t output 
)

resample input in output

Parameters
sresampler object
inputinput buffer of size N
outputoutput buffer of size N*ratio
aubio_resampler_t* new_aubio_resampler ( smpl_t  ratio,
uint_t  type 
)

create resampler object

Parameters
ratiooutput_sample_rate / input_sample_rate
typelibsamplerate resampling type, see http://www.mega-nerd.com/SRC/api_misc.html#Converters