[][src]Function aubio_sys::new_aubio_source

pub unsafe extern "C" fn new_aubio_source(
    uri: *const char_t,
    samplerate: uint_t,
    hop_size: uint_t
) -> *mut aubio_source_t

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.