getInfo method
Gets a fresh copy of the stream info the outlet is serving, as liblsl
sees it (including createdAt, hostname, sessionId and the full
description).
The returned object owns its native handle: call LSLStreamInfo.destroy when done.
Implementation
Future<LSLStreamInfoWithMetadata> getInfo() async {
if (!_useIsolates) {
return _getInfoDirect();
}
final response = await _isolateManagerBang.sendMessage(
LSLMessage(LSLMessageType.getInfo, {}),
);
if (!response.success) {
throw LSLException('Error getting outlet info: ${response.error}');
}
return LSLStreamInfoWithMetadata.fromStreamInfoAddr(response.result as int);
}