pub struct Sample {Show 13 fields
pub name: Name,
pub filename: DosFilename,
pub global_volume: u8,
pub default_volume: u8,
pub default_panning: u8,
pub loop_: Option<SampleLoop>,
pub sustain_loop: Option<SampleLoop>,
pub samplerate_c5: u32,
pub vibrato_speed: u8,
pub vibrato_depth: u8,
pub vibrato_rate: u8,
pub vibrato_type: u8,
pub data: Option<Vec<f32>>,
}Fields§
§name: NameSample Name, null-terminated (but may also contain nulls)
filename: DosFilenameDOS Filename, null-terminated
global_volume: u8Global Volume
default_volume: u8Default Volume
default_panning: u8Default Panning
loop_: Option<SampleLoop>Loop after the note has been released (Off ==) command, or directly after reaching the end point if the sustain loop is off.
sustain_loop: Option<SampleLoop>Loop after reching the end point while holding the note.
samplerate_c5: u32C-5 playback frequency.
If set to the native sampling rate of the sound sample playing the sample at C-5 will play it back unchanged.
vibrato_speed: u8Auto-Vibrato Rate (called Sweep in IT)
vibrato_depth: u8Auto-Vibrato Depth
vibrato_rate: u8Auto-Vibrato Sweep (called Rate in IT)
vibrato_type: u8Auto-Vibrato Type
data: Option<Vec<f32>>Sample samples converted to a normalized f32 representation (values from -1.0 to 1.0)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnwindSafe for Sample
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more