Struct soundfont::data::hydra::sample::SampleHeader[][src]

pub struct SampleHeader {
    pub name: String,
    pub start: u32,
    pub end: u32,
    pub loop_start: u32,
    pub loop_end: u32,
    pub sample_rate: u32,
    pub origpitch: u8,
    pub pitchadj: i8,
    pub sample_link: u16,
    pub sample_type: SampleLink,
}

Fields

name: Stringstart: u32end: u32loop_start: u32loop_end: u32sample_rate: u32origpitch: u8pitchadj: i8sample_link: u16sample_type: SampleLink

Implementations

impl SampleHeader[src]

pub fn read(reader: &mut Reader) -> Result<Self, ParseError>[src]

pub fn read_all<F: Read + Seek>(
    phdr: &Chunk,
    file: &mut F
) -> Result<Vec<Self>, ParseError>
[src]

Trait Implementations

impl Clone for SampleHeader[src]

impl Debug for SampleHeader[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.