Struct hexodsp::monitor::MonitorMinMax
source · [−]pub struct MonitorMinMax {
sig_idx: usize,
buf: [(f32, f32); 160],
buf_write_ptr: usize,
cur_min_max: (f32, f32, usize),
}
Expand description
Implements the logic for min/maxing a single signal channel/line.
Fields
sig_idx: usize
Index of the signal in the MonitorBuf
buf: [(f32, f32); 160]
A ring buffer of min/max samples, written to by buf_write_ptr
.
buf_write_ptr: usize
The pointer/index into buf
to the next update to write.
cur_min_max: (f32, f32, usize)
Holds the currently accumulated min/max values and the length
of so far processed audio rate samples. Once MONITOR_INPUT_LEN_PER_SAMPLE
is reached, this will be written into buf
.
Implementations
sourceimpl MonitorMinMax
impl MonitorMinMax
Auto Trait Implementations
impl RefUnwindSafe for MonitorMinMax
impl Send for MonitorMinMax
impl Sync for MonitorMinMax
impl Unpin for MonitorMinMax
impl UnwindSafe for MonitorMinMax
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more