new_aubio_source method
create new ::aubio_source_t
\param uri the file path or uri to read from \param samplerate sampling rate to view the fie at \param hop_size the size of the blocks to read from
Creates a new source object. If 0
is passed as samplerate
, the sample
rate of the original file is used.
The samplerate of newly created source can be obtained using ::aubio_source_get_samplerate.
Implementation
ffi.Pointer<aubio_source_t> new_aubio_source(
ffi.Pointer<char_t> uri,
int samplerate,
int hop_size,
) {
return _new_aubio_source(
uri,
samplerate,
hop_size,
);
}