Trait ao::Sample [-] [+] [src]

pub trait Sample: Copy {
    fn channels(&self) -> usize;
}

Type bound for sample formats

All types that implement Sample should be raw enough to permit output without additional processing. Conspicuously missing from the default impls is a 24-bit type, simply because there isn't a Rust-native 24-bit type.

Required Methods

fn channels(&self) -> usize

Number of channels each value of this type contains.

Implementors