working on todo.md features
This commit is contained in:
1 parent
210d124814
commit
8f54841c2c
110 files changed
+15932
-6576
No files matched your search
@@ -280,6 +280,13 @@ class ScopeModel {
|
||||
/// the streamed channels. `sample[c]` is channel `c`'s value for this slot; the math channels are
|
||||
/// evaluated from those, in order, so a math channel may use another one.
|
||||
void push_math_sample(const std::vector<f32>& sample);
|
||||
|
||||
/// Pushes one stored slot of a **file** load -- the values, the shared clock and the absolute
|
||||
/// clock -- and then the derived channels, in the producer's own order and under the model's own
|
||||
/// lock. The loader cannot simply hold the lock and push into `live()` itself: every setter it
|
||||
/// needs (`set_signals`, `set_signal_enabled`, ...) takes that same non-recursive lock, so the
|
||||
/// outer one deadlocks the first call.
|
||||
void push_loaded_slot(const std::vector<f32>& values, f64 t, f64 abs_t);
|
||||
/// What the derived channels cost the *producer*: every stored slot that went through
|
||||
/// `push_math_sample()`, and the nanoseconds taken by the `math_timed()` of them that were
|
||||
/// measured. The producer owns the budget between two DATA packets, so this cost is invisible in
|
||||
@@ -343,6 +350,12 @@ class ScopeModel {
|
||||
/// CONFIG, is not silently dropped.
|
||||
void set_calibration(std::size_t signal, double gain, double offset);
|
||||
|
||||
/// The calibration that *will* be applied to that signal, as `{gain, offset}` -- the identity
|
||||
/// `{1, 0}` for a signal nobody calibrated. The read counterpart of `set_calibration()`, and read
|
||||
/// from the model's own record rather than from the channels: a signal that is not acquired has
|
||||
/// no channel to read it from, and the record is what a dialog must show.
|
||||
std::pair<double, double> calibration(std::size_t signal);
|
||||
|
||||
std::size_t channel_count() const noexcept { return channels_.size(); }
|
||||
const Partition& partition() const noexcept { return part_; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user