pub struct SamplePoint {
pub time: f64,
pub sample_bank: SampleBank,
pub sample_volume: i32,
pub custom_sample_bank: i32,
}Expand description
Audio-related info about this control point.
Fields§
§time: f64§sample_bank: SampleBank§sample_volume: i32§custom_sample_bank: i32Implementations§
Source§impl SamplePoint
impl SamplePoint
pub const DEFAULT_SAMPLE_BANK: SampleBank = SampleBank::Normal
pub const DEFAULT_SAMPLE_VOLUME: i32 = 100i32
pub const DEFAULT_CUSTOM_SAMPLE_BANK: i32 = 0i32
pub fn new( time: f64, sample_bank: SampleBank, sample_volume: i32, custom_sample_bank: i32, ) -> Self
pub fn is_redundant(&self, existing: &Self) -> bool
pub fn apply(&self, sample: &mut HitSampleInfo)
Trait Implementations§
Source§impl Clone for SamplePoint
impl Clone for SamplePoint
Source§fn clone(&self) -> SamplePoint
fn clone(&self) -> SamplePoint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ControlPoint<ControlPoints> for SamplePoint
impl ControlPoint<ControlPoints> for SamplePoint
Source§fn check_already_existing(&self, control_points: &ControlPoints) -> bool
fn check_already_existing(&self, control_points: &ControlPoints) -> bool
Whether
self is redundant w.r.t. an already existing control point.Source§fn add(self, control_points: &mut ControlPoints)
fn add(self, control_points: &mut ControlPoints)
Adding the control point into the collection. Read more
Source§impl Debug for SamplePoint
impl Debug for SamplePoint
Source§impl Default for SamplePoint
impl Default for SamplePoint
Source§impl PartialEq for SamplePoint
impl PartialEq for SamplePoint
Source§impl PartialOrd for SamplePoint
impl PartialOrd for SamplePoint
impl StructuralPartialEq for SamplePoint
Auto Trait Implementations§
impl Freeze for SamplePoint
impl RefUnwindSafe for SamplePoint
impl Send for SamplePoint
impl Sync for SamplePoint
impl Unpin for SamplePoint
impl UnwindSafe for SamplePoint
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