streamToLsl

fun DeviceSession.streamToLsl(scope: CoroutineScope, streamName: String = "BrainAccess-"): Job

Stream this device into a fresh LSL outlet on scope; returns the pump Job.

The outlet's channels + metadata come from the device's current config (active labels, srate, impedance vs normal units) and its resolved DeviceSession.hardware (accelerometer / gyroscope presence). Collection starts the device stream; cancel the returned Job (or scope) to stop streaming and close the outlet.

Requires liblsl on the runtime classpath (see BrainAccessLslOutlet).