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(); }
public BiosignalStreamer(IBiosignalSampler biosignalSampler, IClock clock, IStreamConsumer <Timestamped <ISample> > consumer, ArrayQuery channelSelector = null) : this(biosignalSampler, clock, channelSelector) => Attach(consumer);