[][src]Struct creak::RawAudioSpec

pub struct RawAudioSpec {
    pub sample_rate: u32,
    pub channels: usize,
    pub sample_format: RawSampleFormat,
    pub endianness: Endian,
    pub start_offset: usize,
    pub max_frames: Option<usize>,
}

Specification decsribing how to decode some raw audio samples.

Fields

sample_rate: u32

The sample rate of the audio.

channels: usize

The numbers of channels in the audio.

sample_format: RawSampleFormat

The format of the sample data.

endianness: Endian

The endianness of the samples.

start_offset: usize

The byte offset at which to start reading samples.

max_frames: Option<usize>

The maximum number of frames to read.

Trait Implementations

impl Clone for RawAudioSpec[src]

impl Debug for RawAudioSpec[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<T> From<T> for T[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> 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.