pub struct ContextRealtimeDataBuilder { /* private fields */ }
Available on crate features
experimental
and WebAudio
only.Implementations§
Source§impl ContextRealtimeDataBuilder
impl ContextRealtimeDataBuilder
Sourcepub fn current_time(&mut self, v: f64) -> &mut Self
pub fn current_time(&mut self, v: f64) -> &mut Self
The current context time in second in BaseAudioContext.
Sourcepub fn render_capacity(&mut self, v: f64) -> &mut Self
pub fn render_capacity(&mut self, v: f64) -> &mut Self
The time spent on rendering graph divided by render qunatum duration, and multiplied by 100. 100 means the audio renderer reached the full capacity and glitch may occur.
Sourcepub fn callback_interval_mean(&mut self, v: f64) -> &mut Self
pub fn callback_interval_mean(&mut self, v: f64) -> &mut Self
A running mean of callback interval.
Sourcepub fn callback_interval_variance(&mut self, v: f64) -> &mut Self
pub fn callback_interval_variance(&mut self, v: f64) -> &mut Self
A running variance of callback interval.
pub fn build(&mut self) -> Result<ContextRealtimeData, &'static str>
Trait Implementations§
Source§impl Clone for ContextRealtimeDataBuilder
impl Clone for ContextRealtimeDataBuilder
Source§fn clone(&self) -> ContextRealtimeDataBuilder
fn clone(&self) -> ContextRealtimeDataBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContextRealtimeDataBuilder
impl Debug for ContextRealtimeDataBuilder
Auto Trait Implementations§
impl Freeze for ContextRealtimeDataBuilder
impl RefUnwindSafe for ContextRealtimeDataBuilder
impl Send for ContextRealtimeDataBuilder
impl Sync for ContextRealtimeDataBuilder
impl Unpin for ContextRealtimeDataBuilder
impl UnwindSafe for ContextRealtimeDataBuilder
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