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>,
pub pitch: f64,
pub pan: 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.
pitch: f64Per-clip audio pitch shift in semitones (0.0 = none). A set pitch_track
is evaluated at its t=0 value (static, per ADR-0002); the preview applies
it duration-preserving, matching the export shift at the model level.
pan: AnimatedValue<f64>Resolved stereo pan (-1.0 left .. +1.0 right, 0.0 center), static or
animated. Applied once at open at its t=0 value; per-sample pan automation
is a deferred capability, so an animated pan uses its initial value (matching
the export mixer).
Trait Implementations§
Source§impl Clone for SceneAudioPlacement
impl Clone for SceneAudioPlacement
Source§fn clone(&self) -> SceneAudioPlacement
fn clone(&self) -> SceneAudioPlacement
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more