pullChunk method
Pulls a chunk of buffered samples from the inlet.
Parameters:
maxSamples: Upper bound on samples returned per call (default: 512).timeout: How long to keep waiting for more samples. liblsl keeps pulling untilmaxSamplessamples have been read ortimeoutexpires, so a nonzerotimeoutwith amaxSampleslarger than what arrives always waits the fulltimeout. The default0.0returns immediately with whatever is already buffered (up tomaxSamples).
Returns: An LSLChunk with one list per sample and one timestamp
per sample; empty if nothing arrived within timeout.
See also: pullChunkSync, pullChunkTyped
Implementation
Future<LSLChunk<T>> pullChunk({int maxSamples = 512, double timeout = 0.0}) =>
_useIsolates
? _pullChunkIsolated(maxSamples, timeout)
: Future.value(_pullChunkDirect(maxSamples, timeout));