pub trait Sample: Sized + Default + AddAssign + Mul<Output = Self> + Clone + Copy + PartialEq {
    fn from_f32(n: f32) -> Self;
fn from_f64(n: f64) -> Self;
fn to_f32(self) -> f32;
fn to_f64(self) -> f64;
fn read<R: Read>(reader: &mut R) -> Result<Self>;
fn write<W: Write>(self, writer: &mut W) -> Result<()>;
fn read_and_calc_bytes<R: Read>(
        reader: &mut R,
        crc: &mut CRC<u32>
    ) -> Result<Self>;
fn write_and_calc_bytes<W: Write>(
        self,
        writer: &mut W,
        crc: &mut CRC<u32>
    ) -> Result<()>; }
Expand description

Lpcm Sample

Required methods

Implementations on Foreign Types

Implementors