Skip to contents

Marker timestamps remain in the LSL clock domain unless an explicit time_origin is subtracted. Cross-stream alignment is handled separately.

Usage

lslMarkerEvents(x, n = NULL, consume = FALSE, time_origin = 0, type = NULL)

Arguments

x

An open string/irregular-rate LSLInlet.

n

Optional newest marker count.

consume

Whether to consume the complete oldest selection.

time_origin

Finite scalar subtracted from LSL timestamps.

type

Optional event type; defaults to the stream type.

Examples

# \donttest{
# Requires an open marker inlet bound to a live LSL marker stream.
if (lslAvailable()) {
  found <- lslResolveStreams(property = "type", value = "Markers",
                             timeout = 0.2)
  if (length(found)) {
    inlet <- streamOpen(lslInlet(found[[1]]))
    events <- lslMarkerEvents(inlet)
    streamClose(inlet)
  }
}
# }