closeRecorder method

  1. @override
Future<void> closeRecorder(
  1. FlutterSoundRecorderCallback callback
)
override

Implementation

@override
Future<void> closeRecorder(
  FlutterSoundRecorderCallback callback,
) async {
  //if (audioCtx != null) {
  //audioCtx!.close();
  //audioCtx = null;
  //}
  if (mediaRecorderWeb != null) {
    mediaRecorderWeb!.stopRecorder(callback);
    mediaRecorderWeb = null;
  }
  int slotno = findSession(callback);
  _slots[slotno]!.releaseFlautoRecorder();
  _slots[slotno] = null;
}