コード例 #1
0
 public BiosignalStreamer(IBiosignalSampler biosignalSampler, IClock clock, ArrayQuery channelSelector = null) : base(nameof(BiosignalStreamer), clock)
 {
     BiosignalSampler = biosignalSampler;
     Started         += (sender, e) => biosignalSampler.Open();
     Stopped         += (sender, e) => biosignalSampler.Shutdown();
     _channelIndices  = channelSelector?.Enumerate(1, biosignalSampler.ChannelNum).Select(val => (uint)(val - 1)).ToArray();
 }
コード例 #2
0
 public BiosignalStreamer(IBiosignalSampler biosignalSampler, IClock clock, IStreamConsumer <Timestamped <ISample> > consumer, ArrayQuery channelSelector = null)
     : this(biosignalSampler, clock, channelSelector) => Attach(consumer);