pub enum AudioCodec {
LPcm,
}Expand description
Enumeration of all the audio codecs, allows static dispatch on decoding rather than using a trait object
Variants§
LPcm
The Linear Pulse-Code Modulation encoding. Often refered to as just PCM.
Trait Implementations§
Source§impl AudioCodecTrait for AudioCodec
impl AudioCodecTrait for AudioCodec
Source§fn bytes_to_u8_samples(
&self,
bytes: &Vec<u8>,
metadata: &dyn AudioMetadataTrait,
) -> Result<Vec<u8>, PlayError>
fn bytes_to_u8_samples( &self, bytes: &Vec<u8>, metadata: &dyn AudioMetadataTrait, ) -> Result<Vec<u8>, PlayError>
Transforms bytes into u8 samples
Source§fn bytes_to_i16_samples(
&self,
bytes: &Vec<u8>,
metadata: &dyn AudioMetadataTrait,
) -> Result<Vec<i16>, PlayError>
fn bytes_to_i16_samples( &self, bytes: &Vec<u8>, metadata: &dyn AudioMetadataTrait, ) -> Result<Vec<i16>, PlayError>
Transforms bytes into i16 samples
Source§impl Clone for AudioCodec
impl Clone for AudioCodec
Source§fn clone(&self) -> AudioCodec
fn clone(&self) -> AudioCodec
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioCodec
impl Debug for AudioCodec
Source§impl PartialEq for AudioCodec
impl PartialEq for AudioCodec
impl StructuralPartialEq for AudioCodec
Auto Trait Implementations§
impl Freeze for AudioCodec
impl RefUnwindSafe for AudioCodec
impl Send for AudioCodec
impl Sync for AudioCodec
impl Unpin for AudioCodec
impl UnwindSafe for AudioCodec
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