pub struct StreamingFrameBuffer { /* private fields */ }Expand description
Data type for streaming frame buffer.
Implementations§
Source§impl StreamingFrameBuffer
impl StreamingFrameBuffer
Sourcepub fn new(config: StreamingFrameConfig) -> Result<Self>
pub fn new(config: StreamingFrameConfig) -> Result<Self>
Creates a new value.
Sourcepub fn push_frame(&mut self, frame: &AudioFrame<'_>) -> Result<Vec<AudioWindow>>
pub fn push_frame(&mut self, frame: &AudioFrame<'_>) -> Result<Vec<AudioWindow>>
Adds push frame to this value.
Sourcepub fn buffered_samples(&self) -> usize
pub fn buffered_samples(&self) -> usize
Returns buffered samples.
Trait Implementations§
Source§impl Clone for StreamingFrameBuffer
impl Clone for StreamingFrameBuffer
Source§fn clone(&self) -> StreamingFrameBuffer
fn clone(&self) -> StreamingFrameBuffer
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 moreSource§impl Debug for StreamingFrameBuffer
impl Debug for StreamingFrameBuffer
Source§impl PartialEq for StreamingFrameBuffer
impl PartialEq for StreamingFrameBuffer
Source§fn eq(&self, other: &StreamingFrameBuffer) -> bool
fn eq(&self, other: &StreamingFrameBuffer) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamingFrameBuffer
Auto Trait Implementations§
impl Freeze for StreamingFrameBuffer
impl RefUnwindSafe for StreamingFrameBuffer
impl Send for StreamingFrameBuffer
impl Sync for StreamingFrameBuffer
impl Unpin for StreamingFrameBuffer
impl UnsafeUnpin for StreamingFrameBuffer
impl UnwindSafe for StreamingFrameBuffer
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