playWave method

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

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

@override
SilentWave playWave({
  required final WaveType waveType,
  required final double frequency,
  final int partials = 1,
  final double gain = 0.7,
}) =>
    SilentWave(gain: gain);