streamPush method

LSLPushSample<NativeType> streamPush(
  1. LSLStreamInfo streamInfo
)

Gets the LSLPushSample for the given LSLStreamInfo.

Implementation

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