Skip to main content

AudioClipParameters

Struct AudioClipParameters 

Source
pub struct AudioClipParameters<'a> {
Show 16 fields pub source: &'a dyn AudioSource, pub start: Time, pub offset: Time, pub duration: Option<Duration>, pub limit: Option<Duration>, pub volume: f64, pub fade_in: Duration, pub fade_out: Duration, pub envelope: Option<&'a dyn Animation<f64>>, pub pan: f64, pub pan_animation: Option<&'a dyn Animation<f64>>, pub pan_law: PanLaw, pub stereo_width: f64, pub effects: &'a [Arc<dyn AudioEffect>], pub bus: Option<&'a str>, pub ducking: &'a [Ducking],
}
Expand description

Immutable placement and envelope inputs consumed by audio mixers.

Fields§

§source: &'a dyn AudioSource

Stateless source captured by this occurrence.

§start: Time

Destination start on the local timeline.

§offset: Time

First source sample time.

§duration: Option<Duration>

Authored duration override, absent when natural file duration is unresolved.

§limit: Option<Duration>

Optional containing-scene crop.

§volume: f64

Linear amplitude multiplier.

§fade_in: Duration

Fade-in duration.

§fade_out: Duration

Fade-out duration.

§envelope: Option<&'a dyn Animation<f64>>

Optional pure local-time gain animation.

§pan: f64

Mono/stereo pan setting.

§pan_animation: Option<&'a dyn Animation<f64>>

Optional local-time pan animation, replacing the constant pan.

§pan_law: PanLaw

Stereo balance law.

§stereo_width: f64

Mid/side width in 0..=2; one preserves the stereo source.

§effects: &'a [Arc<dyn AudioEffect>]

Effects applied at native rate before gain and pan.

§bus: Option<&'a str>

Optional named submix.

§ducking: &'a [Ducking]

Sidechain ducking by other clips, applied after gain and pan.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.