Struct libspa::param::audio::AudioFormat
source · #[repr(transparent)]pub struct AudioFormat(pub spa_audio_format);
Tuple Fields§
§0: spa_audio_format
Implementations§
source§impl AudioFormat
impl AudioFormat
pub const Unknown: Self = _
pub const Encoded: Self = _
pub const S8: Self = _
pub const U8: Self = _
pub const S16LE: Self = _
pub const S16BE: Self = _
pub const U16LE: Self = _
pub const U16BE: Self = _
pub const S24_32LE: Self = _
pub const S24_32BE: Self = _
pub const U24_32LE: Self = _
pub const U24_32BE: Self = _
pub const S32LE: Self = _
pub const S32BE: Self = _
pub const U32LE: Self = _
pub const U32BE: Self = _
pub const S24LE: Self = _
pub const S24BE: Self = _
pub const U24LE: Self = _
pub const U24BE: Self = _
pub const S20LE: Self = _
pub const S20BE: Self = _
pub const U20LE: Self = _
pub const U20BE: Self = _
pub const S18LE: Self = _
pub const S18BE: Self = _
pub const U18LE: Self = _
pub const U18BE: Self = _
pub const F32LE: Self = _
pub const F32BE: Self = _
pub const F64LE: Self = _
pub const F64BE: Self = _
pub const ULAW: Self = _
pub const ALAW: Self = _
pub const S16: Self = _
pub const U16: Self = _
pub const S18: Self = _
pub const U18: Self = _
pub const S20: Self = _
pub const U20: Self = _
pub const S24: Self = _
pub const U24: Self = _
pub const S32: Self = _
pub const U32: Self = _
pub const U8P: Self = _
pub const S16P: Self = _
pub const S24_32P: Self = _
pub const S32P: Self = _
pub const S24P: Self = _
pub const F32P: Self = _
pub const F64P: Self = _
pub const S8P: Self = _
pub fn is_interleaved(&self) -> bool
pub fn is_planar(&self) -> bool
sourcepub fn from_raw(raw: spa_audio_format) -> Self
pub fn from_raw(raw: spa_audio_format) -> Self
Obtain an AudioFormat
from a raw spa_audio_format
variant.
sourcepub fn as_raw(&self) -> spa_audio_format
pub fn as_raw(&self) -> spa_audio_format
Get the raw spa_sys::spa_audio_format
representing this AudioFormat
.
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 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 PartialOrd for AudioFormat
impl PartialOrd for AudioFormat
source§fn partial_cmp(&self, other: &AudioFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &AudioFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for AudioFormat
impl Eq 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