new_aubio_sink method

Pointer<aubio_sink_t> new_aubio_sink(
  1. Pointer<char_t> uri,
  2. int samplerate
)

create new ::aubio_sink_t

\param uri the file path or uri to write to \param samplerate sample rate to write the file at

\return newly created ::aubio_sink_t

Creates a new sink object.

If samplerate is set to 0, the creation of the file will be delayed until both ::aubio_sink_preset_samplerate and ::aubio_sink_preset_channels have been called.

Implementation

ffi.Pointer<aubio_sink_t> new_aubio_sink(
  ffi.Pointer<char_t> uri,
  int samplerate,
) {
  return _new_aubio_sink(
    uri,
    samplerate,
  );
}