Struct gstreamer_audio::AudioInfo [−][src]
pub struct AudioInfo(_, _);
Information describing audio properties. This information can be filled
in from GstCaps with AudioInfo::from_caps.
Use the provided macros to access the info in this structure.
Methods
impl AudioInfo[src]
impl AudioInfopub fn new<'a>(
format: AudioFormat,
rate: u32,
channels: u32
) -> AudioInfoBuilder<'a>[src]
pub fn new<'a>(
format: AudioFormat,
rate: u32,
channels: u32
) -> AudioInfoBuilder<'a>Allocate a new AudioInfo that is also initialized with
AudioInfo::init.
Returns
a new AudioInfo. free with AudioInfo::free.
pub fn from_caps(caps: &CapsRef) -> Option<Self>[src]
pub fn from_caps(caps: &CapsRef) -> Option<Self>pub fn to_caps(&self) -> Option<Caps>[src]
pub fn to_caps(&self) -> Option<Caps>pub fn convert<V: Into<GenericFormattedValue>, U: SpecificFormattedValue>(
&self,
src_val: V
) -> Option<U>[src]
pub fn convert<V: Into<GenericFormattedValue>, U: SpecificFormattedValue>(
&self,
src_val: V
) -> Option<U>pub fn convert_generic<V: Into<GenericFormattedValue>>(
&self,
src_val: V,
dest_fmt: Format
) -> Option<GenericFormattedValue>[src]
pub fn convert_generic<V: Into<GenericFormattedValue>>(
&self,
src_val: V,
dest_fmt: Format
) -> Option<GenericFormattedValue>pub fn format(&self) -> AudioFormat[src]
pub fn format(&self) -> AudioFormatpub fn format_info(&self) -> AudioFormatInfo[src]
pub fn format_info(&self) -> AudioFormatInfopub fn layout(&self) -> AudioLayout[src]
pub fn layout(&self) -> AudioLayoutpub fn flags(&self) -> AudioFlags[src]
pub fn flags(&self) -> AudioFlagspub fn rate(&self) -> u32[src]
pub fn rate(&self) -> u32pub fn channels(&self) -> u32[src]
pub fn channels(&self) -> u32pub fn bpf(&self) -> u32[src]
pub fn bpf(&self) -> u32pub fn bps(&self) -> u32[src]
pub fn bps(&self) -> u32pub fn depth(&self) -> u32[src]
pub fn depth(&self) -> u32pub fn width(&self) -> u32[src]
pub fn width(&self) -> u32pub fn endianness(&self) -> AudioEndianness[src]
pub fn endianness(&self) -> AudioEndiannesspub fn is_big_endian(&self) -> bool[src]
pub fn is_big_endian(&self) -> boolpub fn is_little_endian(&self) -> bool[src]
pub fn is_little_endian(&self) -> boolpub fn is_float(&self) -> bool[src]
pub fn is_float(&self) -> boolpub fn is_integer(&self) -> bool[src]
pub fn is_integer(&self) -> boolpub fn is_signed(&self) -> bool[src]
pub fn is_signed(&self) -> boolpub fn positions(&self) -> Option<&[AudioChannelPosition]>[src]
pub fn positions(&self) -> Option<&[AudioChannelPosition]>pub fn is_unpositioned(&self) -> bool[src]
pub fn is_unpositioned(&self) -> boolTrait Implementations
impl Debug for AudioInfo[src]
impl Debug for AudioInfofn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl Clone for AudioInfo[src]
impl Clone for AudioInfofn clone(&self) -> Self[src]
fn clone(&self) -> SelfReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for AudioInfo[src]
impl PartialEq for AudioInfofn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for AudioInfo[src]
impl Eq for AudioInfoimpl Send for AudioInfo[src]
impl Send for AudioInfoimpl StaticType for AudioInfo[src]
impl StaticType for AudioInfofn static_type() -> Type[src]
fn static_type() -> TypeReturns the type identifier of Self.