Module claxon::sample [] [src]

The sample module provides the Sample trait and its implementations.

The purpose of this module is similar to that of num::traits in the num crate, but the Sample type has been specialised more towards FLAC in particular. For instance, it is only implemented for types that can be encountered in a FLAC stream. (This excludes i64 and unsigned integers.)

Traits

Sample

A trait that allows decoding into integers of various widths.

WideSample

A trait that enables efficient decoding for every bit depth.