generator_init function

Future<int> generator_init(
  1. Pointer<Generator> self,
  2. int sound_format,
  3. int channels,
  4. int sample_rate,
  5. double buffer_duration_seconds,
)

Implementation

Future<int> generator_init(
  Pointer<Generator> self,
  int sound_format,
  int channels,
  int sample_rate,
  double buffer_duration_seconds,
) async =>
    _generator_init(
      self.addr,
      sound_format,
      channels,
      sample_rate,
      buffer_duration_seconds,
    );