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
Required Methods
fn len() -> usize
Length of the frame in samples.
fn format() -> Format
The exact format described by this struct.
Implementors
impl SampleFrame for Mono<u8>
impl SampleFrame for Mono<i16>
impl SampleFrame for Mono<f32>
impl SampleFrame for Mono<f64>
impl SampleFrame for Mono<ALawSample>
impl SampleFrame for Mono<MuLawSample>
impl SampleFrame for Stereo<u8>
impl SampleFrame for Stereo<i16>
impl SampleFrame for Stereo<f32>
impl SampleFrame for Stereo<f64>
impl SampleFrame for Stereo<ALawSample>
impl SampleFrame for Stereo<MuLawSample>
impl SampleFrame for McRear<u8>
impl SampleFrame for McRear<i16>
impl SampleFrame for McRear<f32>
impl SampleFrame for McRear<MuLawSample>
impl SampleFrame for McQuad<u8>
impl SampleFrame for McQuad<i16>
impl SampleFrame for McQuad<f32>
impl SampleFrame for McQuad<MuLawSample>
impl SampleFrame for Mc51Chn<u8>
impl SampleFrame for Mc51Chn<i16>
impl SampleFrame for Mc51Chn<f32>
impl SampleFrame for Mc51Chn<MuLawSample>
impl SampleFrame for Mc61Chn<u8>
impl SampleFrame for Mc61Chn<i16>
impl SampleFrame for Mc61Chn<f32>
impl SampleFrame for Mc61Chn<MuLawSample>
impl SampleFrame for Mc71Chn<u8>
impl SampleFrame for Mc71Chn<i16>
impl SampleFrame for Mc71Chn<f32>
impl SampleFrame for Mc71Chn<MuLawSample>
impl SampleFrame for BFormat2D<u8>
impl SampleFrame for BFormat2D<i16>
impl SampleFrame for BFormat2D<f32>
impl SampleFrame for BFormat2D<MuLawSample>
impl SampleFrame for BFormat3D<u8>
impl SampleFrame for BFormat3D<i16>
impl SampleFrame for BFormat3D<f32>
impl SampleFrame for BFormat3D<MuLawSample>