pub struct SilenceSource {
format: AudioFormat,
next_frame: u64,
}Expand description
Silence source — emits all-zero samples.
Fields§
§format: AudioFormat§next_frame: u64Implementations§
Source§impl SilenceSource
impl SilenceSource
Sourcepub fn new(format: AudioFormat) -> Self
pub fn new(format: AudioFormat) -> Self
Construct.
Sourcepub fn next_chunk(&mut self, frames: u64) -> AudioChunk
pub fn next_chunk(&mut self, frames: u64) -> AudioChunk
Emit frames of silence.
Trait Implementations§
Source§impl Clone for SilenceSource
impl Clone for SilenceSource
Source§fn clone(&self) -> SilenceSource
fn clone(&self) -> SilenceSource
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 SilenceSource
impl RefUnwindSafe for SilenceSource
impl Send for SilenceSource
impl Sync for SilenceSource
impl Unpin for SilenceSource
impl UnsafeUnpin for SilenceSource
impl UnwindSafe for SilenceSource
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