Skip to main content

SoundScene

Struct SoundScene 

Source
pub struct SoundScene<Build> { /* private fields */ }
Expand description

Explicit sound-declaration scene; the time-zero metadata pass is cached once.

Trait Implementations§

Source§

impl<Build, Output> Scene for SoundScene<Build>
where Build: Fn(&SceneContext<'_>) -> Output + Send + Sync, Output: IntoSceneOutput,

Source§

fn validate(&self) -> Result

Validates deferred authoring errors without evaluating a frame.
Source§

fn duration(&self) -> Option<Duration>

Natural finite duration, or None when a caller must provide one.
Source§

fn render(&self, context: &SceneContext<'_>) -> Node

Builds one snapshot without retaining previous-frame state.
Source§

fn audio_clips(&self) -> Result<Vec<AudioClip>>

Returns pure audio metadata for precomposition/export, not playback. Default scenes are silent; callers must preserve local clip coordinates.
Source§

fn audio_composition(&self) -> Option<&Timeline>

Optional nested timeline ownership, preserved when its audio is relocated.
Source§

fn with_duration(self, duration: Duration) -> WithDuration<Self>
where Self: Sized,

Overrides clip metadata without retiming or clamping the callback. Read more

Auto Trait Implementations§

§

impl<Build> !Freeze for SoundScene<Build>

§

impl<Build> Forget for SoundScene<Build>

§

impl<Build> RefUnwindSafe for SoundScene<Build>
where Build: RefUnwindSafe,

§

impl<Build> Send for SoundScene<Build>
where Build: Send,

§

impl<Build> Sync for SoundScene<Build>
where Build: Sync,

§

impl<Build> Unpin for SoundScene<Build>
where Build: Unpin,

§

impl<Build> UnsafeUnpin for SoundScene<Build>
where Build: UnsafeUnpin,

§

impl<Build> UnwindSafe for SoundScene<Build>
where Build: UnwindSafe,

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.