pub struct MixClip {
pub file: PathBuf,
pub start: 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 music: bool,
}Expand description
One clip on the output timeline.
Fields§
§file: PathBufAudio file.
start: f64Start on the output timeline, in seconds. Negative skips into the clip.
volume: f32Linear gain.
fade_in: f64Fade in, seconds.
fade_out: f64Fade out, seconds.
trim_start: f64Seconds skipped from the start of the file.
trim_end: Option<f64>End point in the file. None plays to the end.
priority: boolWhile this clip plays, music ducks.
music: boolThis clip is the soundtrack, so ducking applies to it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MixClip
impl RefUnwindSafe for MixClip
impl Send for MixClip
impl Sync for MixClip
impl Unpin for MixClip
impl UnsafeUnpin for MixClip
impl UnwindSafe for MixClip
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