LSLOutlet constructor
LSLOutlet(
- LSLStreamInfo streamInfo, {
- int chunkSize = 0,
- int maxBuffer = 360,
- bool useIsolates = true,
Creates a new LSLOutlet instance. Parameters:
streamInfo: The stream information to create the outlet for.chunkSize: Chunk size in samples for transmission (default: 0).maxBuffer: Maximum buffer size in seconds (default: 360).useIsolates: Whether to use isolates for thread safety (default: true) This is recommended for most use cases to ensure thread safety, if you choose to use direct mode (useIsolates: false), you most likely will want to still run this in an isolate to avoid blocking the main isolate.
Implementation
LSLOutlet(
this.streamInfo, {
this.chunkSize = 0,
this.maxBuffer = 360,
bool useIsolates = true,
}) : _useIsolates = useIsolates;