コード例 #1
0
ファイル: LSL.cs プロジェクト: conphyture/beta
 public StreamInlet(StreamInfo info, int max_buflen, int max_chunklen, bool recover)
 {
     obj = dll.lsl_create_inlet(info.handle(), max_buflen, max_chunklen, recover?1:0);
 }
コード例 #2
0
ファイル: LSL.cs プロジェクト: conphyture/beta
 public StreamInlet(StreamInfo info, int max_buflen, int max_chunklen)
 {
     obj = dll.lsl_create_inlet(info.handle(), max_buflen, max_chunklen, 1);
 }
コード例 #3
0
ファイル: LSL.cs プロジェクト: conphyture/beta
 /**
 * Construct a new stream inlet from a resolved stream info.
 * @param info A resolved stream info object (as coming from one of the resolver functions).
 *             Note: the stream_inlet may also be constructed with a fully-specified stream_info,
 *                   if the desired channel format and count is already known up-front, but this is
 *                   strongly discouraged and should only ever be done if there is no time to resolve the
 *                   stream up-front (e.g., due to limitations in the client program).
 * @param max_buflen Optionally the maximum amount of data to buffer (in seconds if there is a nominal
 *                   sampling rate, otherwise x100 in samples). Recording applications want to use a fairly
 *                   large buffer size here, while real-time applications would only buffer as much as
 *                   they need to perform their next calculation.
 * @param max_chunklen Optionally the maximum size, in samples, at which chunks are transmitted
 *                     (the default corresponds to the chunk sizes used by the sender).
 *                     Recording applications can use a generous size here (leaving it to the network how
 *                     to pack things), while real-time applications may want a finer (perhaps 1-sample) granularity.
                   If left unspecified (=0), the sender determines the chunk granularity.
 * @param recover Try to silently recover lost streams that are recoverable (=those that that have a source_id set).
 *                In all other cases (recover is false or the stream is not recoverable) functions may throw a
 *                LostException if the stream's source is lost (e.g., due to an app or computer crash).
 */
 public StreamInlet(StreamInfo info)
 {
     obj = dll.lsl_create_inlet(info.handle(), 360, 0, 1);
 }
コード例 #4
0
ファイル: LSL.cs プロジェクト: conphyture/beta
 public StreamOutlet(StreamInfo info, int chunk_size, int max_buffered)
 {
     obj = dll.lsl_create_outlet(info.handle(), chunk_size, max_buffered);
 }
コード例 #5
0
ファイル: LSL.cs プロジェクト: conphyture/beta
 public StreamOutlet(StreamInfo info, int chunk_size)
 {
     obj = dll.lsl_create_outlet(info.handle(), chunk_size, 360);
 }
コード例 #6
0
ファイル: LSL.cs プロジェクト: conphyture/beta
 /**
 * Establish a new stream outlet. This makes the stream discoverable.
 * @param info The stream information to use for creating this stream. Stays constant over the lifetime of the outlet.
 * @param chunk_size Optionally the desired chunk granularity (in samples) for transmission. If unspecified,
 *                   each push operation yields one chunk. Inlets can override this setting.
 * @param max_buffered Optionally the maximum amount of data to buffer (in seconds if there is a nominal
 *                     sampling rate, otherwise x100 in samples). The default is 6 minutes of data.
 */
 public StreamOutlet(StreamInfo info)
 {
     obj = dll.lsl_create_outlet(info.handle(), 0, 360);
 }