pub struct SceneAudioPlacement {
pub source: PathBuf,
pub offset: Duration,
pub in_point: Duration,
pub out_point: Option<Duration>,
pub speed: f64,
pub fade_in: Duration,
pub fade_out: Duration,
pub volume: AnimatedValue<f64>,
}Expand description
One audio-only clip placed on the timeline.
Fields§
§source: PathBufSource media path.
offset: DurationGlobal timeline position where this placement starts.
in_point: DurationSource-file PTS at which playback starts (defaulted to zero).
out_point: Option<Duration>Source-file PTS at which playback ends (None = play to EOF).
speed: f64Playback speed multiplier (1.0 = normal), clamped to at least 0.01,
applied by resampling.
fade_in: DurationAudio fade-in duration (Duration::ZERO = none).
fade_out: DurationAudio fade-out duration (Duration::ZERO = none).
volume: AnimatedValue<f64>Resolved audio gain (dB), static or animated. A static value is applied once at open; an animated one is evaluated per tick.
Trait Implementations§
Source§impl Clone for SceneAudioPlacement
impl Clone for SceneAudioPlacement
Source§fn clone(&self) -> SceneAudioPlacement
fn clone(&self) -> SceneAudioPlacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SceneAudioPlacement
impl RefUnwindSafe for SceneAudioPlacement
impl Send for SceneAudioPlacement
impl Sync for SceneAudioPlacement
impl Unpin for SceneAudioPlacement
impl UnsafeUnpin for SceneAudioPlacement
impl UnwindSafe for SceneAudioPlacement
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