pub struct StreamDecoder { /* private fields */ }Implementations§
Source§impl StreamDecoder
impl StreamDecoder
pub fn new(rate: u32, channels: usize) -> Result<StreamDecoder>
pub fn sample_rate(&self) -> u32
pub fn channels(&self) -> usize
pub fn final_range(&self) -> u32
pub fn last_packet_duration(&self) -> usize
pub fn set_gain_q8(&mut self, gain: i16)
pub fn set_phase_inversion_disabled(&mut self, disabled: bool)
pub fn reset(&mut self)
pub fn decode_interleaved( &mut self, packet: Option<&[u8]>, out: &mut Vec<f32>, ) -> Result<usize>
pub fn conceal(&mut self, n: usize, out: &mut Vec<f32>) -> Result<usize>
pub fn decode_fec( &mut self, packet: &[u8], n: usize, out: &mut Vec<f32>, ) -> Result<usize>
Auto Trait Implementations§
impl Freeze for StreamDecoder
impl RefUnwindSafe for StreamDecoder
impl Send for StreamDecoder
impl Sync for StreamDecoder
impl Unpin for StreamDecoder
impl UnsafeUnpin for StreamDecoder
impl UnwindSafe for StreamDecoder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more