LslRecorder class

Records LSL streams to an XDF file, as LabRecorder does: raw time stamps (no clock synchronisation or dejittering; readers do that from the clock offsets), each stream's full info as its header, a clock offset per stream every offsetInterval, a boundary chunk every boundaryInterval, and footers when stopped.

Properties

boundaryInterval → Duration
final
elapsed → Duration
no setter
hashCode → int
The hash code for this object.
no setterinherited
offsetInterval → Duration
final
pullInterval → Duration
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sampleCount → int
no setter
started → DateTime
final
stopped → bool
no setter
streams → List<LslRecordedStream>
final
where → String
Where the file goes, for display.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stop() → Future<void>
Collect what is left, write the footers and close the file.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromInlets(List<LslInlet> inlets, Sink<List<int>> sink, {String where = '', Duration pullInterval = const Duration(milliseconds: 100), Duration offsetInterval = const Duration(seconds: 5), Duration boundaryInterval = const Duration(seconds: 10)}) → LslRecorder
Record inlets that are open already (bridge inlets, say) to sink. They should give raw time stamps, as inletOptions asks of LSL: the file then holds them with each inlet's clock offsets beside them.
start(List<LslStreamDescription> streams, Sink<List<int>> sink, {String where = '', Duration pullInterval = const Duration(milliseconds: 100), Duration offsetInterval = const Duration(seconds: 5), Duration boundaryInterval = const Duration(seconds: 10)}) → Future<LslRecorder>
Open an inlet for each of streams and record them to sink.

Constants

inletOptions → const LslInletOptions
How recording inlets receive: everything, with raw time stamps.