aubio 0.4.9
|
Load and play sound files. More...
Go to the source code of this file.
Typedefs | |
typedef struct _aubio_sampler_t | aubio_sampler_t |
sampler object | |
Functions | |
aubio_sampler_t * | new_aubio_sampler (uint_t samplerate, uint_t hop_size) |
create new sampler object | |
uint_t | aubio_sampler_load (aubio_sampler_t *o, const char_t *uri) |
load source in sampler | |
void | aubio_sampler_do (aubio_sampler_t *o, const fvec_t *input, fvec_t *output) |
process sampler function | |
void | aubio_sampler_do_multi (aubio_sampler_t *o, const fmat_t *input, fmat_t *output) |
process sampler function, multiple channels | |
uint_t | aubio_sampler_get_playing (const aubio_sampler_t *o) |
get current playing state | |
uint_t | aubio_sampler_set_playing (aubio_sampler_t *o, uint_t playing) |
set current playing state | |
uint_t | aubio_sampler_play (aubio_sampler_t *o) |
play sample from start | |
uint_t | aubio_sampler_stop (aubio_sampler_t *o) |
stop sample | |
void | del_aubio_sampler (aubio_sampler_t *o) |
destroy aubio_sampler_t object | |
Load and play sound files.
This file loads a sample and gets ready to play it.
The _do
function adds the new samples to the input, and write the result as the output.
Definition in file sampler.h.
typedef struct _aubio_sampler_t aubio_sampler_t |
void aubio_sampler_do | ( | aubio_sampler_t * | o, |
const fvec_t * | input, | ||
fvec_t * | output ) |
process sampler function
o | sampler, created by new_aubio_sampler() |
input | input of the sampler, to be added to the output |
output | output of the sampler |
This function adds the new samples from the playing source to the output.
If input
is not NULL and different from output
, then the samples from input
are added to the output.
void aubio_sampler_do_multi | ( | aubio_sampler_t * | o, |
const fmat_t * | input, | ||
fmat_t * | output ) |
process sampler function, multiple channels
o | sampler, created by new_aubio_sampler() |
input | input of the sampler, to be added to the output |
output | output of the sampler |
This function adds the new samples from the playing source to the output.
If input
is not NULL and different from output
, then the samples from input
are added to the output.
uint_t aubio_sampler_get_playing | ( | const aubio_sampler_t * | o | ) |
get current playing state
o | sampler, created by new_aubio_sampler() |
uint_t aubio_sampler_load | ( | aubio_sampler_t * | o, |
const char_t * | uri ) |
load source in sampler
o | sampler, created by new_aubio_sampler() |
uri | the uri of the source to load |
uint_t aubio_sampler_play | ( | aubio_sampler_t * | o | ) |
play sample from start
o | sampler, created by new_aubio_sampler() |
uint_t aubio_sampler_set_playing | ( | aubio_sampler_t * | o, |
uint_t | playing ) |
set current playing state
o | sampler, created by new_aubio_sampler() |
playing | 0 for not playing, 1 for playing |
uint_t aubio_sampler_stop | ( | aubio_sampler_t * | o | ) |
stop sample
o | sampler, created by new_aubio_sampler() |
void del_aubio_sampler | ( | aubio_sampler_t * | o | ) |
destroy aubio_sampler_t object
o | sampler, created by new_aubio_sampler() |
aubio_sampler_t * new_aubio_sampler | ( | uint_t | samplerate, |
uint_t | hop_size ) |
create new sampler object
samplerate | the sampling rate of the new sampler |
hop_size | the block size of the new sampler |