Enum sdl2::audio::AudioFormat
[−]
[src]
pub enum AudioFormat {
U8,
S8,
U16LSB,
U16MSB,
S16LSB,
S16MSB,
S32LSB,
S32MSB,
F32LSB,
F32MSB,
}Variants
U8Unsigned 8-bit samples
S8Signed 8-bit samples
U16LSBUnsigned 16-bit samples, little-endian
U16MSBUnsigned 16-bit samples, big-endian
S16LSBSigned 16-bit samples, little-endian
S16MSBSigned 16-bit samples, big-endian
S32LSBSigned 32-bit samples, little-endian
S32MSBSigned 32-bit samples, big-endian
F32LSB32-bit floating point samples, little-endian
F32MSB32-bit floating point samples, big-endian
Methods
impl AudioFormat[src]
fn u16_sys() -> AudioFormat
Unsigned 16-bit samples, native endian
fn s16_sys() -> AudioFormat
Signed 16-bit samples, native endian
fn s32_sys() -> AudioFormat
Signed 32-bit samples, native endian
fn f32_sys() -> AudioFormat
32-bit floating point samples, native endian
Trait Implementations
impl Hash for AudioFormat[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl Debug for AudioFormat[src]
impl PartialEq for AudioFormat[src]
fn eq(&self, __arg_0: &AudioFormat) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Eq for AudioFormat[src]
impl Clone for AudioFormat[src]
fn clone(&self) -> AudioFormat
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more