aubio_sink_preset_samplerate method

int aubio_sink_preset_samplerate(
  1. Pointer<aubio_sink_t> s,
  2. int samplerate
)

preset sink samplerate

\param s sink, created with ::new_aubio_sink \param samplerate samplerate to preset the sink to, in Hz

\return 0 on success, 1 on error

Preset the samplerate of the sink. The file should have been created using a samplerate of 0.

The file will be opened only when both samplerate and channels have been set.

Implementation

int aubio_sink_preset_samplerate(
  ffi.Pointer<aubio_sink_t> s,
  int samplerate,
) {
  return _aubio_sink_preset_samplerate(
    s,
    samplerate,
  );
}