Struct libspa::param::audio::AudioInfoRaw
source · pub struct AudioInfoRaw(/* private fields */);
Expand description
Rust representation of spa_sys::spa_audio_info_raw
.
Implementations§
source§impl AudioInfoRaw
impl AudioInfoRaw
pub fn new() -> Self
pub fn set_format(&mut self, format: AudioFormat)
pub fn format(&self) -> AudioFormat
pub fn set_flags(&mut self, flags: AudioInfoRawFlags)
pub fn flags(&self) -> AudioInfoRawFlags
pub fn set_rate(&mut self, rate: u32)
pub fn rate(&self) -> u32
pub fn set_channels(&mut self, channels: u32)
pub fn channels(&self) -> u32
pub fn set_position(&mut self, position: [u32; 64])
pub fn position(&self) -> [u32; 64]
sourcepub fn parse(&mut self, format: &Pod) -> Result<SpaSuccess, Error>
pub fn parse(&mut self, format: &Pod) -> Result<SpaSuccess, Error>
helper function to parse format properties type
sourcepub fn from_raw(raw: spa_audio_info_raw) -> Self
pub fn from_raw(raw: spa_audio_info_raw) -> Self
Obtain an AudioInfoRaw
from a raw spa_audio_info_raw
variant.
sourcepub fn as_raw(&self) -> spa_audio_info_raw
pub fn as_raw(&self) -> spa_audio_info_raw
Get the raw spa_sys::spa_audio_info_raw
representing this AudioInfoRaw
.
Trait Implementations§
source§impl Clone for AudioInfoRaw
impl Clone for AudioInfoRaw
source§fn clone(&self) -> AudioInfoRaw
fn clone(&self) -> AudioInfoRaw
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 AudioInfoRaw
impl Debug for AudioInfoRaw
source§impl Default for AudioInfoRaw
impl Default for AudioInfoRaw
source§impl From<AudioInfoRaw> for Vec<Property>
impl From<AudioInfoRaw> for Vec<Property>
source§fn from(value: AudioInfoRaw) -> Self
fn from(value: AudioInfoRaw) -> Self
Converts to this type from the input type.
source§impl PartialEq for AudioInfoRaw
impl PartialEq for AudioInfoRaw
source§fn eq(&self, other: &AudioInfoRaw) -> bool
fn eq(&self, other: &AudioInfoRaw) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AudioInfoRaw
impl Eq for AudioInfoRaw
impl StructuralPartialEq for AudioInfoRaw
Auto Trait Implementations§
impl RefUnwindSafe for AudioInfoRaw
impl Send for AudioInfoRaw
impl Sync for AudioInfoRaw
impl Unpin for AudioInfoRaw
impl UnwindSafe for AudioInfoRaw
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