playSquare method

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

Play a square wave.

Implementation

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