createFromPointer method
Creates an inlet from an existing lsl_inlet pointer. Parameters:
pointer: The existing lsl_inlet pointer. Returns: A LSLInlet instance wrapping the existing pointer. Throws: LSLException if inlet creation fails or ifuseIsolates: true.
Implementation
Future<LSLInlet<T>> createFromPointer(lsl_inlet pointer) async {
if (created) {
throw LSLException('Inlet already created');
}
if (useIsolates) {
throw LSLException(
'Creating inlet from pointer is not supported in isolated mode',
);
}
_managed = false;
super.create();
_inlet = pointer;
setupPullBuffer();
return this;
}