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§
Sourcefn from_decoder(sample: i32, bits: u8) -> Self
fn from_decoder(sample: i32, bits: u8) -> Self
Constructs Self
from a right-aligned sample with bit depth bits
.
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.