pub struct MusicBed {
pub id: Option<String>,
pub path: String,
pub volume: Option<f32>,
pub fade_in: Option<f64>,
pub fade_out: Option<f64>,
pub duck_under: Option<String>,
pub duck_depth_db: Option<f32>,
pub loop: bool,
pub at: Option<f64>,
pub duration: Option<f64>,
}Expand description
Music under the video.
Fields§
§id: Option<String>The node’s name, for other nodes to refer to.
path: StringThe file.
volume: Option<f32>Linear gain. Default 1.
fade_in: Option<f64>Seconds of fade in. Default 1.
fade_out: Option<f64>Seconds of fade out at the end. Default 2.
duck_under: Option<String>The id of a node (or body) whose sound it ducks under.
duck_depth_db: Option<f32>How far ducking lowers it, in dB (negative). Default -12.
loop: boolPlays the file again from its start while the video lasts. Default true.
at: Option<f64>Seconds from the parent’s start (an overlay’s: the video’s). Ignored in a sequence.
duration: Option<f64>Length in seconds. Default: the node’s own length, else what its parent gives it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MusicBed
impl<'de> Deserialize<'de> for MusicBed
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MusicBed
Auto Trait Implementations§
impl Freeze for MusicBed
impl RefUnwindSafe for MusicBed
impl Send for MusicBed
impl Sync for MusicBed
impl Unpin for MusicBed
impl UnsafeUnpin for MusicBed
impl UnwindSafe for MusicBed
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