alac

Trait Sample

Source
pub trait Sample: Copy + Sealed {
    // Required methods
    fn from_decoder(sample: i32, bits: u8) -> Self;
    fn bits() -> u8;
}
Expand description

A type that can be used to represent audio samples.

Required Methods§

Source

fn from_decoder(sample: i32, bits: u8) -> Self

Constructs Self from a right-aligned sample with bit depth bits.

Source

fn bits() -> u8

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Sample for i16

Source§

fn from_decoder(sample: i32, _: u8) -> Self

Source§

fn bits() -> u8

Source§

impl Sample for i32

Source§

fn from_decoder(sample: i32, bits: u8) -> Self

Source§

fn bits() -> u8

Implementors§