Struct rosu_map::section::timing_points::SamplePoint
source · 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 copy 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§fn eq(&self, other: &SamplePoint) -> bool
fn eq(&self, other: &SamplePoint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SamplePoint
impl PartialOrd for SamplePoint
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for SamplePoint
Auto Trait Implementations§
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