Struct gstreamer_audio::AudioInfo
source · pub struct AudioInfo(_, _);Implementations
sourceimpl AudioInfo
impl AudioInfo
pub fn builder<'a>(
format: AudioFormat,
rate: u32,
channels: u32
) -> AudioInfoBuilder<'a>
pub fn is_valid(&self) -> bool
pub fn from_caps(caps: &CapsRef) -> Result<Self, BoolError>
pub fn to_caps(&self) -> Result<Caps, BoolError>
pub fn convert<U: SpecificFormattedValueFullRange>(
&self,
src_val: impl FormattedValue
) -> Option<U>
pub fn convert_generic(
&self,
src_val: impl FormattedValue,
dest_fmt: Format
) -> Option<GenericFormattedValue>
pub fn format(&self) -> AudioFormat
pub fn format_info(&self) -> AudioFormatInfo
pub fn layout(&self) -> AudioLayout
pub fn flags(&self) -> AudioFlags
pub fn rate(&self) -> u32
pub fn channels(&self) -> u32
pub fn bpf(&self) -> u32
pub fn bps(&self) -> u32
pub fn depth(&self) -> u32
pub fn width(&self) -> u32
pub fn endianness(&self) -> AudioEndianness
pub fn is_big_endian(&self) -> bool
pub fn is_little_endian(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_integer(&self) -> bool
pub fn is_signed(&self) -> bool
pub fn positions(&self) -> Option<&[AudioChannelPosition]>
pub fn is_unpositioned(&self) -> bool
Trait Implementations
sourceimpl StaticType for AudioInfo
impl StaticType for AudioInfo
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for AudioInfo
impl Send for AudioInfo
impl Sync for AudioInfo
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for Twhere
T: ToValue,
impl<T> ToClosureReturnValue for Twhere
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.