Enum pix_engine::audio::AudioFormat
source · pub enum AudioFormat {
U8,
S8,
U16LSB,
U16MSB,
S16LSB,
S16MSB,
S32LSB,
S32MSB,
F32LSB,
F32MSB,
}
Expand description
Audio number and endianness format for the given audio device.
Variants§
U8
Unsigned 8-bit samples
S8
Signed 8-bit samples
U16LSB
Unsigned 16-bit samples, little-endian
U16MSB
Unsigned 16-bit samples, big-endian
S16LSB
Signed 16-bit samples, little-endian
S16MSB
Signed 16-bit samples, big-endian
S32LSB
Signed 32-bit samples, little-endian
S32MSB
Signed 32-bit samples, big-endian
F32LSB
32-bit floating point samples, little-endian
F32MSB
32-bit floating point samples, big-endian
Implementations§
source§impl AudioFormat
impl AudioFormat
sourcepub const fn u16_sys() -> AudioFormat
pub const fn u16_sys() -> AudioFormat
Unsigned 16-bit samples, native endian
sourcepub const fn s16_sys() -> AudioFormat
pub const fn s16_sys() -> AudioFormat
Signed 16-bit samples, native endian
sourcepub const fn s32_sys() -> AudioFormat
pub const fn s32_sys() -> AudioFormat
Signed 32-bit samples, native endian
sourcepub const fn f32_sys() -> AudioFormat
pub const fn f32_sys() -> AudioFormat
32-bit floating point samples, native endian
Trait Implementations§
source§impl Clone for AudioFormat
impl Clone for AudioFormat
source§fn clone(&self) -> AudioFormat
fn clone(&self) -> AudioFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AudioFormat
impl Debug for AudioFormat
source§impl Default for AudioFormat
impl Default for AudioFormat
source§impl<'de> Deserialize<'de> for AudioFormat
impl<'de> Deserialize<'de> for AudioFormat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for AudioFormat
impl Hash for AudioFormat
source§impl PartialEq for AudioFormat
impl PartialEq for AudioFormat
source§fn eq(&self, other: &AudioFormat) -> bool
fn eq(&self, other: &AudioFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AudioFormat
impl Serialize for AudioFormat
impl Copy for AudioFormat
impl Eq for AudioFormat
impl StructuralEq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl RefUnwindSafe for AudioFormat
impl Send for AudioFormat
impl Sync for AudioFormat
impl Unpin for AudioFormat
impl UnwindSafe for AudioFormat
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more