Message queue.
Channel number.
Channel state; its buffer is changed in place.
Payload decoder, e.g. FlatBufferParser.parse.
Calibration of the channel.
Largest buffer length.
OptionalonChunk: (chunkStartIndex: number, reset: boolean, chunk: DataPoint[]) => voidCalled after each applied batch with the index in live.buffer of the
batch's first point and whether the buffer was reset first.
Most messages to take in this call. The rest stay queued in order, so draining in several calls gives the same buffer as one call. Default: all of them.
The channel's noise filters, or null. Points then reach the buffer
through it, a few samples late (see live-filter.ts).
Number of messages taken from the queue.
Decodes and applies every queued message of one channel, in arrival order.
For each message: decode, ingestScan, empty the buffer on a reset, append the points, trim to
maxPoints, then callonChunkso trigger logic sees each batch right after it is in the buffer.