setWaveform method

void setWaveform({
  1. GeneratorWaveformType type = GeneratorWaveformType.sine,
  2. double frequency = 440.0,
  3. double amplitude = 0.5,
})

Sets the waveform type, frequency, and amplitude.

Implementation

void setWaveform({
  GeneratorWaveformType type = GeneratorWaveformType.sine,
  double frequency = 440.0,
  double amplitude = 0.5,
}) =>
    _generator.setWaveform(
      type: type,
      frequency: frequency,
      amplitude: amplitude,
    );