Trait symphonia_core::sample::Sample
source · pub trait Sample:
Copy
+ Clone
+ Add<Output = Self>
+ Sub<Output = Self>
+ Default
+ PartialOrd
+ PartialEq
+ Sized {
const FORMAT: SampleFormat;
const EFF_BITS: u32;
const MID: Self;
// Required method
fn clamped(self) -> Self;
}
Expand description
Sample
provides a common interface for manipulating sample’s regardless of the
underlying data type. Additionally, Sample
provides information regarding the
format of underlying data types representing the sample when in memory, but also
when exported.
Required Associated Constants§
sourceconst FORMAT: SampleFormat
const FORMAT: SampleFormat
A unique enum value representing the sample format. This constant may be used to dynamically choose how to process the sample at runtime.
Required Methods§
Object Safety§
This trait is not object safe.