ImpulseSampleHeader

Struct ImpulseSampleHeader 

Source
pub struct ImpulseSampleHeader {
Show 18 fields pub dos_filename: Box<[u8]>, pub sample_name: String, pub global_volume: u8, pub flags: SampleFormatFlags, pub default_volume: u8, pub convert: SampleFormatConvert, pub default_pan: u8, pub length: u32, pub loop_start: u32, pub loop_end: u32, pub c5_speed: u32, pub sustain_start: u32, pub sustain_end: u32, pub data_ptr: InFilePtr, pub vibrato_speed: u8, pub vibrato_depth: u8, pub vibrato_type: VibratoWave, pub vibrato_rate: u8,
}

Fields§

§dos_filename: Box<[u8]>§sample_name: String§global_volume: u8§flags: SampleFormatFlags§default_volume: u8§convert: SampleFormatConvert§default_pan: u8§length: u32§loop_start: u32§loop_end: u32§c5_speed: u32§sustain_start: u32§sustain_end: u32§data_ptr: InFilePtr§vibrato_speed: u8§vibrato_depth: u8§vibrato_type: VibratoWave§vibrato_rate: u8

Implementations§

Source§

impl ImpulseSampleHeader

Source

pub fn parse<H: FnMut(LoadDefect)>( buf: &[u8; 80], defect_handler: &mut H, ) -> Result<Self, LoadErr>

Trait Implementations§

Source§

impl Debug for ImpulseSampleHeader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> FromSample<S> for S

Source§

fn from_sample_(s: S) -> S

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

Source§

fn to_sample_(self) -> U

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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