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

Media sink to write blocks of consecutive audio samples to file. More...

Go to the source code of this file.

Typedefs

typedef struct _aubio_sink_t aubio_sink_t
 media sink object
 

Functions

aubio_sink_tnew_aubio_sink (char_t *uri, uint_t samplerate)
 create new aubio_sink_t More...
 
void aubio_sink_do (aubio_sink_t *s, fvec_t *write_data, uint_t write)
 write monophonic vector of length hop_size to sink More...
 
void del_aubio_sink (aubio_sink_t *s)
 close sink and cleanup memory More...
 

Detailed Description

Media sink to write blocks of consecutive audio samples to file.

Definition in file sink.h.

Function Documentation

void aubio_sink_do ( aubio_sink_t s,
fvec_t write_data,
uint_t  write 
)

write monophonic vector of length hop_size to sink

Parameters
ssink, created with new_aubio_sink
write_datafvec_t samples to write to sink
writenumber of frames to write
Examples:
io/test-sink.c, synth/test-sampler.c, and synth/test-wavetable.c.
void del_aubio_sink ( aubio_sink_t s)

close sink and cleanup memory

Parameters
ssource object, created with new_aubio_source
Examples:
io/test-sink.c, synth/test-sampler.c, and synth/test-wavetable.c.
aubio_sink_t* new_aubio_sink ( char_t uri,
uint_t  samplerate 
)

create new aubio_sink_t

Parameters
urithe file path or uri to write to
sampleratesample rate to write the file at
Returns
newly created aubio_sink_t

Creates a new sink object.

Examples:
io/test-sink.c, synth/test-sampler.c, and synth/test-wavetable.c.