pub struct SoundClip {
pub file: String,
pub at: f64,
pub volume: f32,
pub fade_in: f64,
pub fade_out: f64,
pub trim_start: f64,
pub trim_end: Option<f64>,
pub priority: bool,
pub speech: bool,
}Expand description
One sound effect placed on the scene timeline.
Fields§
§file: StringAudio file, relative to the project root.
at: f64Start, in seconds from the beginning of the scene.
volume: f32Linear gain. 1.0 is unity.
fade_in: f64Fade in at the start of the clip, in seconds.
fade_out: f64Fade out at the end of the clip, in seconds.
trim_start: f64Seconds skipped from the start of the file.
trim_end: Option<f64>End point in the file, in seconds. None plays through to the end.
priority: boolDucks the music while this clip is audible.
speech: boolThis clip is a spoken line. The timeline shows the line, not a second bar.
Trait Implementations§
impl StructuralPartialEq for SoundClip
Auto Trait Implementations§
impl Freeze for SoundClip
impl RefUnwindSafe for SoundClip
impl Send for SoundClip
impl Sync for SoundClip
impl Unpin for SoundClip
impl UnsafeUnpin for SoundClip
impl UnwindSafe for SoundClip
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