LSLStreamInfo class

Representation of the lsl_streaminfo_struct_ from the LSL C API.

Implementers

Constructors

LSLStreamInfo({String streamName = "DartLSLStream", LSLContentType streamType = LSLContentType.eeg, int channelCount = 16, double sampleRate = 250.0, LSLChannelFormat channelFormat = LSLChannelFormat.float32, String sourceId = "DartLSL", lsl_streaminfo? streamInfo})
Creates a new LSLStreamInfo object.
LSLStreamInfo.fromStreamInfo(lsl_streaminfo streamInfo)
Creates a new LSLStreamInfo object from an existing lsl_streaminfo.
factory
LSLStreamInfo.fromStreamInfoAddr(int address)
Creates a new LSLStreamInfo object from an existing stream info address. / When constructing inlets, this creates the LSLStreamInfo object based on an existing stream info address, which can be retrieved from a stream resolver.
factory

Properties

channelCount int
final
channelFormat LSLChannelFormat
final
created bool
Whether the object has been created.
no setterinherited
destroyed bool
Whether the object has been destroyed.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
hostname String?
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampleRate double
final
sourceId String
final
streamInfo lsl_streaminfo
The Pointer to the underlying lsl_streaminfo_struct_.
no setter
streamName String
final
streamType LSLContentType
final
uid String?
no setter

Methods

addAlloc(Pointer<NativeType> arg) → void
Adds a pointer to the list of allocated pointers.
inherited
addAllocList(List<Pointer<NativeType>> args) → void
Adds a list of pointers to the list of allocated pointers.
inherited
create() LSLStreamInfo
Creates the stream info object, allocates memory, etc.
destroy() → void
Destroys the object.
freeArgs() → void
Frees all allocated pointers.
inherited
fromXml(String xml) LSLStreamInfoWithMetadata
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetUid() String
Resets the stream info's UID. @note This is not a common operation and should be used with caution. This retuns the new UID as a string.
toString() String
A string representation of this object.
override
toXml() String

Operators

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