LSLOutlet constructor

LSLOutlet(
  1. LSLStreamInfo streamInfo, {
  2. int chunkSize = 0,
  3. int maxBuffer = 360,
  4. 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;