[][src]Struct audrey::read::Description

pub struct Description { /* fields omitted */ }

A description of the audio format that was read from file.

Implementations

impl Description[src]

pub fn format(&self) -> Format[src]

The format from which the audio will be read.

pub fn channel_count(&self) -> u32[src]

The number of channels of audio.

E.g. For audio stored in stereo this should return 2. Mono audio will return 1.

pub fn sample_rate(&self) -> u32[src]

The rate in Hertz at which each channel of the stored audio is sampled.

E.g. A sample_rate of 44_100 indicates that the audio is sampled 44_100 times per second per channel.

Trait Implementations

impl Clone for Description[src]

impl Copy for Description[src]

impl Debug for Description[src]

impl Eq for Description[src]

impl PartialEq<Description> for Description[src]

impl StructuralEq for Description[src]

impl StructuralPartialEq for Description[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 
[src]

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

impl<S> FromSample<S> for S[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 
[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.