pub struct FrameSink {
recording: Arc<Recording>,
limit: usize,
}Expand description
The write half of a stream-fed take.
Send and Sync, so a socket task or any other reader of frames can
hold it and push from wherever it runs.
Fields§
§recording: Arc<Recording>§limit: usizeImplementations§
Source§impl FrameSink
impl FrameSink
Sourcepub fn push_mono(&self, samples: &[f32]) -> bool
pub fn push_mono(&self, samples: &[f32]) -> bool
Push mono samples at SAMPLE_RATE.
The loudest sample is folded into the meter, so a level bar reads
pushed audio. Samples past Config::max_capture are dropped and
the take flags itself truncated. Answers false once the take is
over, so a caller can stop feeding.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FrameSink
impl RefUnwindSafe for FrameSink
impl Send for FrameSink
impl Sync for FrameSink
impl Unpin for FrameSink
impl UnsafeUnpin for FrameSink
impl UnwindSafe for FrameSink
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