pub struct Pcm8Stream<'a> { /* private fields */ }Expand description
Streaming 8-bit PCM (Tier B) with fractional speed resampling.
Implementations§
Source§impl<'a> Pcm8Stream<'a>
impl<'a> Pcm8Stream<'a>
pub fn new(data: &'a [u8], flags: u8) -> Self
pub fn with_speed(data: &'a [u8], flags: u8, speed_q16: u32) -> Self
pub fn set_speed_q16(&mut self, speed_q16: u32)
pub fn speed_q16(&self) -> u32
pub fn reset(&mut self)
pub fn is_done(&self) -> bool
pub fn next_sample(&mut self) -> Option<i8>
Trait Implementations§
Source§impl<'a> Clone for Pcm8Stream<'a>
impl<'a> Clone for Pcm8Stream<'a>
Source§fn clone(&self) -> Pcm8Stream<'a>
fn clone(&self) -> Pcm8Stream<'a>
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 moreimpl<'a> Copy for Pcm8Stream<'a>
Auto Trait Implementations§
impl<'a> Freeze for Pcm8Stream<'a>
impl<'a> RefUnwindSafe for Pcm8Stream<'a>
impl<'a> Send for Pcm8Stream<'a>
impl<'a> Sync for Pcm8Stream<'a>
impl<'a> Unpin for Pcm8Stream<'a>
impl<'a> UnsafeUnpin for Pcm8Stream<'a>
impl<'a> UnwindSafe for Pcm8Stream<'a>
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