[][src]Struct cauldron::audio::AudioInfo

pub struct AudioInfo {
    pub codec: CodecType,
    pub audio_format: SampleFormat,
    pub sample_rate: u32,
    pub total_samples: u64,
    pub bits_per_sample: u32,
    pub channels: Channels,
    pub channel_layout: ChannelLayout,
}

AudioInfo stored in a container format's headers and metadata

Fields

codec: CodecTypeaudio_format: SampleFormat

describes the data encoding for an audio sample.

sample_rate: u32

The sample rate of the audio in Hz.

total_samples: u64

The length of the encoded stream in number of frames.

bits_per_sample: u32

The number of bits per one decoded audio sample.

channels: Channels

A list of in-order channels.

channel_layout: ChannelLayout

The channel layout.

Trait Implementations

impl Clone for AudioInfo[src]

impl Copy for AudioInfo[src]

impl Display for AudioInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]