#[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 duplicate 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§impl PartialOrd for AudioFormat
impl PartialOrd for AudioFormat
impl Copy for AudioFormat
impl Eq for AudioFormat
impl StructuralPartialEq for AudioFormat
Auto Trait Implementations§
impl Freeze for AudioFormat
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