streamPull method

LSLPullSample<NativeType, dynamic> streamPull(
  1. LSLStreamInfo streamInfo
)

Gets the LSLPullSample for the given LSLStreamInfo.

Implementation

LSLPullSample streamPull(LSLStreamInfo streamInfo) {
  final LSLChannelFormat channelFormat = streamInfo.channelFormat;
  if (_pullSampleMap.containsKey(channelFormat)) {
    return _pullSampleMap[channelFormat]!;
  } else {
    throw LSLException('Unsupported channel format: $channelFormat');
  }
}