Trait openal::Sample [] [src]

pub trait Sample {
    fn format(channels: u16) -> Result<ALenum, Error>;
}

A trait for defining a conversion between a type and an OpenAL format.

Required Methods

Returns the OpenAL format based on the number of channels.

Implementors