pub struct SceneEvent {
pub at: u64,
pub sound: u32,
pub gain: f32,
pub gate_frames: Option<u64>,
}Expand description
One sound starting at a frame.
Fields§
§at: u64The frame it starts on, counted from the start of the scene.
sound: u32An index into Scene::sounds.
gain: f32Linear gain.
gate_frames: Option<u64>A gate: after this many frames the voice fades out over the scene’s release. None plays the sound to its end.
Implementations§
Trait Implementations§
Source§impl Clone for SceneEvent
impl Clone for SceneEvent
impl Copy for SceneEvent
Source§impl Debug for SceneEvent
impl Debug for SceneEvent
Source§impl PartialEq for SceneEvent
impl PartialEq for SceneEvent
impl StructuralPartialEq for SceneEvent
Auto Trait Implementations§
impl Forget for SceneEvent
impl Freeze for SceneEvent
impl Move for SceneEvent
impl RefUnwindSafe for SceneEvent
impl Send for SceneEvent
impl Sync for SceneEvent
impl Unpin for SceneEvent
impl UnsafeUnpin for SceneEvent
impl UnwindSafe for SceneEvent
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