pub struct PcmuDecoder {}Expand description
Decoder for μ-law (PCMU) format
Implementations§
Source§impl PcmuDecoder
impl PcmuDecoder
Trait Implementations§
Source§impl Decoder for PcmuDecoder
impl Decoder for PcmuDecoder
Source§fn decode_into(
&mut self,
data: &[u8],
out: &mut [Sample],
) -> Result<usize, CodecError>
fn decode_into( &mut self, data: &[u8], out: &mut [Sample], ) -> Result<usize, CodecError>
Source§fn max_decode_samples(&self, n_bytes: usize) -> usize
fn max_decode_samples(&self, n_bytes: usize) -> usize
Upper bound on the number of samples that
decode_into will write
for an input of n_bytes bytes.Source§fn sample_rate(&self) -> u32
fn sample_rate(&self) -> u32
Get the sample rate of the decoded audio.
Source§impl Default for PcmuDecoder
impl Default for PcmuDecoder
Source§fn default() -> PcmuDecoder
fn default() -> PcmuDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PcmuDecoder
impl RefUnwindSafe for PcmuDecoder
impl Send for PcmuDecoder
impl Sync for PcmuDecoder
impl Unpin for PcmuDecoder
impl UnsafeUnpin for PcmuDecoder
impl UnwindSafe for PcmuDecoder
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