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.toJSBox,
      callbackTable.toJS,
    );
  } else {
    assert(slotno == _slots.length);
    _slots.add(newRecorderInstance(callback.toJSBox, callbackTable.toJS));
  }
  //audioCtx = AudioContext();

  getWebSession(callback)!.initializeFlautoRecorder();
}