Crate dasp_sample

Source
Expand description

Use the Sample trait to remain generic over sample types, easily access sample type conversions, apply basic audio operations and more.

The Sample trait is the core abstraction throughout dasp on which most other abstractions are based.

Re-exports§

pub use conv::Duplex;
pub use conv::FromSample;
pub use conv::ToSample;
pub use types::I24;
pub use types::I48;
pub use types::U24;
pub use types::U48;

Modules§

conv
Pure functions and traits for converting between i8, i16, I24, i32, I48, i64, u8, u16, U24, u32, U48, u64, f32 and f64.
types
A collection of custom, non-std Sample types.

Traits§

FloatSample
Sample format types represented as floating point numbers.
Sample
A trait for working generically across different Sample format types.
SignedSample
Integral and floating-point Sample format types whose equilibrium is at 0.