pub struct OscilloscopeTap { /* private fields */ }Expand description
Observation-only oscilloscope tap processor.
Implementations§
Source§impl OscilloscopeTap
impl OscilloscopeTap
Sourcepub fn with_output(output: OscilloscopeFrameProducer) -> Self
pub fn with_output(output: OscilloscopeFrameProducer) -> Self
Create a new oscilloscope tap with frame output channel.
Sourcepub fn set_output(&mut self, output: OscilloscopeFrameProducer)
pub fn set_output(&mut self, output: OscilloscopeFrameProducer)
Attach or replace the output channel.
Sourcepub fn set_sample_rate_hz(&mut self, sample_rate: f32)
pub fn set_sample_rate_hz(&mut self, sample_rate: f32)
Set sample rate used in frame metadata.
Sourcepub fn capture_stereo(&mut self, left: &[f32], right: &[f32])
pub fn capture_stereo(&mut self, left: &[f32], right: &[f32])
Capture and publish a frame from stereo slices.
Trait Implementations§
Source§impl Default for OscilloscopeTap
impl Default for OscilloscopeTap
Auto Trait Implementations§
impl !Freeze for OscilloscopeTap
impl !RefUnwindSafe for OscilloscopeTap
impl Send for OscilloscopeTap
impl !Sync for OscilloscopeTap
impl Unpin for OscilloscopeTap
impl UnsafeUnpin for OscilloscopeTap
impl UnwindSafe for OscilloscopeTap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more