generateTone method

Future<bool> generateTone({
  1. double frequency = 440.0,
  2. double volume = 1.0,
  3. int? duration,
})

Generates a tone with the specified frequency, volume, and duration.

frequency - The frequency of the tone in Hz (default: 440.0) volume - The volume of the tone from 0.0 to 1.0 (default: 1.0) duration - The duration of the tone in milliseconds (optional, if null the tone plays until stopped)

Implementation

Future<bool> generateTone({
  double frequency = 440.0,
  double volume = 1.0,
  int? duration,
}) {
  throw UnimplementedError('generateTone() has not been implemented.');
}