playWave abstract method

Wave playWave({
  1. required WaveType waveType,
  2. required double frequency,
  3. int partials = 1,
  4. double gain = 0.7,
})

Play a wave of the given waveType at the given frequency through this channel.

If waveType is WaveType.sine, then partials are ignored.

If partials is < 1, then StateError is thrown.

Implementation

Wave playWave({
  required final WaveType waveType,
  required final double frequency,
  final int partials = 1,
  final double gain = 0.7,
});