Class StreamInlet

Implements
Namespace: LSL
Assembly: MOSAIC.dll
Syntax
public class StreamInlet : LSLObject, IDisposable

Constructors

StreamInlet(StreamInfo, int, int, bool, processing_options_t)

Declaration
public StreamInlet(StreamInfo info, int max_buflen = 360, int max_chunklen = 0, bool recover = true, processing_options_t postproc_flags = processing_options_t.proc_none)
Parameters
Type Name Description
StreamInfo info
int max_buflen
int max_chunklen
bool recover
processing_options_t postproc_flags

Methods

DestroyLSLObject(nint)

To be implemented in inheriting classes: the liblsl function to destroy the internal object

Declaration
protected override void DestroyLSLObject(nint obj)
Parameters
Type Name Description
nint obj
Overrides
LSLObject.DestroyLSLObject(nint)

close_stream()

Declaration
public void close_stream()

info(double)

Declaration
public StreamInfo info(double timeout = 32000000)
Parameters
Type Name Description
double timeout
Returns
Type Description
StreamInfo

open_stream(double)

Declaration
public void open_stream(double timeout = 32000000)
Parameters
Type Name Description
double timeout

pull_chunk(char[,], double[], double)

Declaration
public int pull_chunk(char[,] data_buffer, double[] timestamp_buffer, double timeout = 0)
Parameters
Type Name Description
char[,] data_buffer
double[] timestamp_buffer
double timeout
Returns
Type Description
int

pull_chunk(double[,], double[], double)

Declaration
public int pull_chunk(double[,] data_buffer, double[] timestamp_buffer, double timeout = 0)
Parameters
Type Name Description
double[,] data_buffer
double[] timestamp_buffer
double timeout
Returns
Type Description
int

pull_chunk(short[,], double[], double)

Declaration
public int pull_chunk(short[,] data_buffer, double[] timestamp_buffer, double timeout = 0)
Parameters
Type Name Description
short[,] data_buffer
double[] timestamp_buffer
double timeout
Returns
Type Description
int

pull_chunk(int[,], double[], double)

Declaration
public int pull_chunk(int[,] data_buffer, double[] timestamp_buffer, double timeout = 0)
Parameters
Type Name Description
int[,] data_buffer
double[] timestamp_buffer
double timeout
Returns
Type Description
int

pull_chunk(float[,], double[], double)

Declaration
public int pull_chunk(float[,] data_buffer, double[] timestamp_buffer, double timeout = 0)
Parameters
Type Name Description
float[,] data_buffer
double[] timestamp_buffer
double timeout
Returns
Type Description
int

pull_chunk(string[,], double[], double)

Declaration
public int pull_chunk(string[,] data_buffer, double[] timestamp_buffer, double timeout = 0)
Parameters
Type Name Description
string[,] data_buffer
double[] timestamp_buffer
double timeout
Returns
Type Description
int

pull_sample(char[], double)

Declaration
public double pull_sample(char[] sample, double timeout = 32000000)
Parameters
Type Name Description
char[] sample
double timeout
Returns
Type Description
double

pull_sample(double[], double)

Declaration
public double pull_sample(double[] sample, double timeout = 32000000)
Parameters
Type Name Description
double[] sample
double timeout
Returns
Type Description
double

pull_sample(short[], double)

Declaration
public double pull_sample(short[] sample, double timeout = 32000000)
Parameters
Type Name Description
short[] sample
double timeout
Returns
Type Description
double

pull_sample(int[], double)

Declaration
public double pull_sample(int[] sample, double timeout = 32000000)
Parameters
Type Name Description
int[] sample
double timeout
Returns
Type Description
double

pull_sample(float[], double)

Declaration
public double pull_sample(float[] sample, double timeout = 32000000)
Parameters
Type Name Description
float[] sample
double timeout
Returns
Type Description
double

pull_sample(string[], double)

Declaration
public double pull_sample(string[] sample, double timeout = 32000000)
Parameters
Type Name Description
string[] sample
double timeout
Returns
Type Description
double

samples_available()

Declaration
public int samples_available()
Returns
Type Description
int

time_correction(double)

Declaration
public double time_correction(double timeout = 32000000)
Parameters
Type Name Description
double timeout
Returns
Type Description
double

was_clock_reset()

Declaration
public bool was_clock_reset()
Returns
Type Description
bool

Implements

IDisposable

Search documentation

Start typing to search the documentation.