Trait alto::SampleFrame [] [src]

pub unsafe trait SampleFrame: Copy {
    type Sample: Copy;
    fn len() -> usize;
    fn format() -> Format;
}

Implemented by structs that represent a frame of audio samples. A sample frame is a grouping of audio samples from each channel of an output format.

Associated Types

Underlying sample type.

Required Methods

Length of the frame in samples.

The exact format described by this struct.

Implementors