openRecorder method

  1. @override
Future<void> openRecorder(
  1. FlutterSoundRecorderCallback callback, {
  2. required Level logLevel,
})
override

Implementation

@override
Future<void> openRecorder(
  FlutterSoundRecorderCallback callback, {
  required Level logLevel,
}) async {
  int slotno = findSession(callback);
  if (slotno < _slots.length) {
    assert(_slots[slotno] == null);
    _slots[slotno] = newRecorderInstance(callback, callbackTable);
  } else {
    assert(slotno == _slots.length);
    _slots.add(newRecorderInstance(callback, callbackTable));
  }
  //audioCtx = AudioContext();

  getWebSession(callback)!.initializeFlautoRecorder();
}