openRecorder method
Future<void>
openRecorder(
- FlutterSoundRecorderCallback callback, {
- required Level logLevel,
- AudioFocus? focus,
- SessionCategory? category,
- SessionMode? mode,
- int? audioFlags,
- AudioDevice? device,
override
Implementation
@override
Future<void> openRecorder(FlutterSoundRecorderCallback callback, {required Level logLevel, AudioFocus? focus, SessionCategory? category, SessionMode? mode, int? audioFlags, AudioDevice? device}) 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));
}
getWebSession(callback)!.initializeFlautoRecorder(focus!.index, category!.index, mode!.index, audioFlags, device!.index);
}