streamPullChunk method
Gets the LSLPullChunk for the given LSLStreamInfo. Throws: LSLException for the undefined format.
Implementation
LSLPullChunk streamPullChunk(LSLStreamInfo streamInfo) {
final LSLChannelFormat channelFormat = streamInfo.channelFormat;
final pullChunk = _pullChunkMap[channelFormat];
if (pullChunk == null) {
throw LSLException(
'pullChunk is not supported for $channelFormat streams',
);
}
return pullChunk;
}