initFile method

  1. @override
Future<void> initFile(
  1. String filename, {
  2. required int sampleRate,
  3. required int channels,
  4. required SoundFormat format,
})
override

Implementation

@override
Future<void> initFile(
  String filename, {
  required int sampleRate,
  required int channels,
  required SoundFormat format,
}) async {
  this.filename = filename;
  this.sampleRate = sampleRate;
  this.channels = channels;
  this.format = format;
  state = RecorderState.ready;
}