pub struct AdsrSpec {
pub attack_ms: u16,
pub decay_ms: u16,
pub sustain_q8: u8,
pub release_ms: u16,
}Expand description
ADSR segment in milliseconds (0 = skip segment).
Fields§
§attack_ms: u16§decay_ms: u16§sustain_q8: u8§release_ms: u16Implementations§
Trait Implementations§
impl Copy for AdsrSpec
impl Eq for AdsrSpec
impl StructuralPartialEq for AdsrSpec
Auto Trait Implementations§
impl Freeze for AdsrSpec
impl RefUnwindSafe for AdsrSpec
impl Send for AdsrSpec
impl Sync for AdsrSpec
impl Unpin for AdsrSpec
impl UnsafeUnpin for AdsrSpec
impl UnwindSafe for AdsrSpec
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