Crate sample [] [src]

sample

A crate for simplifying generic audio sample processing. Use the Sample trait to remain generic across any audio bit-depth.

Reexports

pub use types::{I24, U24, I48, U48};

Modules

buffer

This module provides various helper functions for performing operations on slices of samples.

conv

Pure functions for converting between i8, i16, I24, i32, I48, i64, u8, u16, U24, u32, U48, u64, f32 and f64.

types

Traits

Duplex

Sample types which may be converted to and from some type S.

FromSample

Similar to the std From trait, but specifically for converting between sample types.

Sample

A trait for working generically across different sample types.

ToSample

Similar to the std Into trait, but specifically for converting between sample types.