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 AudioInfo
pub 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) -> AudioFormat
pub fn format_info(&self) -> AudioFormatInfo
[src]
pub fn format_info(&self) -> AudioFormatInfo
pub fn layout(&self) -> AudioLayout
[src]
pub fn layout(&self) -> AudioLayout
pub fn flags(&self) -> AudioFlags
[src]
pub fn flags(&self) -> AudioFlags
pub fn rate(&self) -> u32
[src]
pub fn rate(&self) -> u32
pub fn channels(&self) -> u32
[src]
pub fn channels(&self) -> u32
pub fn bpf(&self) -> u32
[src]
pub fn bpf(&self) -> u32
pub fn bps(&self) -> u32
[src]
pub fn bps(&self) -> u32
pub fn depth(&self) -> u32
[src]
pub fn depth(&self) -> u32
pub fn width(&self) -> u32
[src]
pub fn width(&self) -> u32
pub fn endianness(&self) -> AudioEndianness
[src]
pub fn endianness(&self) -> AudioEndianness
pub fn is_big_endian(&self) -> bool
[src]
pub fn is_big_endian(&self) -> bool
pub fn is_little_endian(&self) -> bool
[src]
pub fn is_little_endian(&self) -> bool
pub fn is_float(&self) -> bool
[src]
pub fn is_float(&self) -> bool
pub fn is_integer(&self) -> bool
[src]
pub fn is_integer(&self) -> bool
pub fn is_signed(&self) -> bool
[src]
pub fn is_signed(&self) -> bool
pub fn positions(&self) -> Option<&[AudioChannelPosition]>
[src]
pub fn positions(&self) -> Option<&[AudioChannelPosition]>
pub fn is_unpositioned(&self) -> bool
[src]
pub fn is_unpositioned(&self) -> bool
Trait Implementations
impl Debug for AudioInfo
[src]
impl Debug for AudioInfo
fn 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 AudioInfo
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns 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 AudioInfo
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for AudioInfo
[src]
impl Eq for AudioInfo
impl Send for AudioInfo
[src]
impl Send for AudioInfo
impl StaticType for AudioInfo
[src]
impl StaticType for AudioInfo
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.