当前位置: 首页>>代码示例>>C#>>正文


C# StreamInfo.handle方法代码示例

本文整理汇总了C#中StreamInfo.handle方法的典型用法代码示例。如果您正苦于以下问题:C# StreamInfo.handle方法的具体用法?C# StreamInfo.handle怎么用?C# StreamInfo.handle使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在StreamInfo的用法示例。


在下文中一共展示了StreamInfo.handle方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: StreamInlet

 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);
 }
开发者ID:conphyture,项目名称:beta,代码行数:4,代码来源:LSL.cs

示例2: unspecified

 /**
 * 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);
 }
开发者ID:conphyture,项目名称:beta,代码行数:24,代码来源:LSL.cs

示例3: StreamOutlet

 public StreamOutlet(StreamInfo info, int chunk_size, int max_buffered)
 {
     obj = dll.lsl_create_outlet(info.handle(), chunk_size, max_buffered);
 }
开发者ID:conphyture,项目名称:beta,代码行数:4,代码来源:LSL.cs


注:本文中的StreamInfo.handle方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。