Trait alac::Sample
[−]
[src]
pub trait Sample: Copy + Sealed { fn from_decoder(sample: i32, bits: u8) -> Self; fn bits() -> u8; }
A type that can be used to represent audio samples.
Required Methods
fn from_decoder(sample: i32, bits: u8) -> Self
Constructs Self
from a right-aligned sample with bit depth bits
.