pub struct Layer {
pub sound: Sound,
pub gain: f32,
pub intensity: [f32; 2],
}Expand description
One stem of a track. It keeps playing even when its intensity gain is zero.
Fields§
§sound: Sound§gain: f32Full-level linear gain, finite and nonnegative. Default 1.
intensity: [f32; 2]Intensity at which gain starts rising and reaches full level, 0..=1 in order. Equal endpoints give a step (on at/above the threshold). Default [0, 0], always on.
Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Layer
impl !Sync for Layer
impl !UnwindSafe for Layer
impl Freeze for Layer
impl Send for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
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