initEngine method
Triggers engine initialisation mapped to C++ backend.
Utilizes mode to switch context (e.g. 0 for capture, 1 for playback).
Implementation
void initEngine({int mode = 0, String? filePath}) {
final ptr = (filePath != null) ? filePath.toNativeUtf8() : ffi.nullptr;
_initEngineNative(mode, ptr);
if (ptr != ffi.nullptr) {
calloc.free(ptr);
}
}