#[repr(C)]pub struct LV2AtomEvent {
pub time_in_frames: i64,
pub body: LV2Atom,
}Expand description
The header of an atom:Event. Note this type is NOT an LV2_Atom.
Fields§
§time_in_frames: i64Time stamp. Which type is determined by context.
body: LV2AtomEvent body atom header.
Implementations§
Source§impl LV2AtomEvent
impl LV2AtomEvent
Sourcepub const fn time_as_frames(&self) -> i64
pub const fn time_as_frames(&self) -> i64
Get time stamp as audio frames.
Sourcepub unsafe fn time_as_beats(&self) -> f64
pub unsafe fn time_as_beats(&self) -> f64
Get time stamp as beats (double).
§Safety
Only valid if the sequence uses beat time. Calling this when the sequence uses frame time will return meaningless data.
Trait Implementations§
Source§impl Clone for LV2AtomEvent
impl Clone for LV2AtomEvent
Source§fn clone(&self) -> LV2AtomEvent
fn clone(&self) -> LV2AtomEvent
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 Debug for LV2AtomEvent
impl Debug for LV2AtomEvent
impl Copy for LV2AtomEvent
Auto Trait Implementations§
impl Freeze for LV2AtomEvent
impl RefUnwindSafe for LV2AtomEvent
impl Send for LV2AtomEvent
impl Sync for LV2AtomEvent
impl Unpin for LV2AtomEvent
impl UnwindSafe for LV2AtomEvent
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