aubio_sink_preset_channels method

int aubio_sink_preset_channels(
  1. Pointer<_aubio_sink_t> s,
  2. int channels
)

preset sink channels

\param s sink, created with ::new_aubio_sink \param channels number of channels to preset the sink to

\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_channels(
  ffi.Pointer<_aubio_sink_t> s,
  int channels,
) {
  return _aubio_sink_preset_channels(
    s,
    channels,
  );
}