call method

int call(
  1. lsl_outlet out,
  2. Pointer<T> data, {
  3. double? timestamp,
  4. bool? pushthrough,
})

Pushes the sample in data.

timestamp is the capture time in LSL.localClock() seconds (0.0 or null = now). pushthrough overrides the outlet's chunking for this sample (liblsl's default is true). With neither given the plain lsl_push_sample_* call is used.

Implementation

int call(
  lsl_outlet out,
  Pointer<T> data, {
  double? timestamp,
  bool? pushthrough,
}) {
  if (pushthrough != null) {
    return _pushTP(out, data, timestamp ?? 0.0, pushthrough ? 1 : 0);
  }
  if (timestamp != null) {
    return _pushT(out, data, timestamp);
  }
  return _pushFn(out, data);
}