Struct hexodsp::monitor::MonitorBuf
source · [−]Expand description
This structure holds the output of the 6 cell inputs and outputs that is currently being monitored by the frontend.
Fields
sig_blocks: [f32; 768]
Holds the data of the signals. Each signal has it’s
own length. The lengths of the individual elements is
reflected in the len
attribute.
len: [usize; 6]
Holds the lengths of the individual signal data blocks in sig_blocks
.
read_idx: [usize; 6]
Holds the lengths of the individual signal data blocks in sig_blocks
.
Implementations
sourceimpl MonitorBuf
impl MonitorBuf
sourcepub fn alloc() -> MonitorBufPtr
pub fn alloc() -> MonitorBufPtr
Allocates a monitor buffer that holds up to 6 signals.
pub fn reset(&mut self)
pub fn next_sample_for_signal(&mut self, idx: usize) -> Option<f32>
pub fn feed<T>(&mut self, idx: usize, len: usize, data: T)where
T: MonitorSource,
Auto Trait Implementations
impl RefUnwindSafe for MonitorBuf
impl Send for MonitorBuf
impl Sync for MonitorBuf
impl Unpin for MonitorBuf
impl UnwindSafe for MonitorBuf
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