pub struct StepPulseSource {
format: AudioFormat,
spike_frame_index: u64,
next_frame: u64,
}Expand description
Step-pulse source. Emits a single-frame 1.0 spike at
spike_frame_index; every other frame is 0.0. Useful for
histogram-peak assertions that need a known location.
Fields§
§format: AudioFormat§spike_frame_index: u64§next_frame: u64Implementations§
Source§impl StepPulseSource
impl StepPulseSource
Sourcepub fn new(format: AudioFormat, spike_frame_index: u64) -> Self
pub fn new(format: AudioFormat, spike_frame_index: u64) -> Self
Construct with the spike at spike_frame_index.
Sourcepub fn next_chunk(&mut self, frames: u64) -> AudioChunk
pub fn next_chunk(&mut self, frames: u64) -> AudioChunk
Emit frames of step-pulse audio.
Trait Implementations§
Source§impl Clone for StepPulseSource
impl Clone for StepPulseSource
Source§fn clone(&self) -> StepPulseSource
fn clone(&self) -> StepPulseSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StepPulseSource
impl RefUnwindSafe for StepPulseSource
impl Send for StepPulseSource
impl Sync for StepPulseSource
impl Unpin for StepPulseSource
impl UnsafeUnpin for StepPulseSource
impl UnwindSafe for StepPulseSource
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