Struct web_audio_api::AudioRenderCapacityEvent
source · pub struct AudioRenderCapacityEvent { /* private fields */ }Expand description
Performance metrics of the rendering thread
Implementations
sourceimpl AudioRenderCapacityEvent
impl AudioRenderCapacityEvent
sourcepub fn timestamp(&self) -> f64
pub fn timestamp(&self) -> f64
The start time of the data collection period in terms of the associated AudioContext’s currentTime
sourcepub fn average_load(&self) -> f64
pub fn average_load(&self) -> f64
An average of collected load values over the given update interval
sourcepub fn peak_load(&self) -> f64
pub fn peak_load(&self) -> f64
A maximum value from collected load values over the given update interval.
sourcepub fn underrun_ratio(&self) -> f64
pub fn underrun_ratio(&self) -> f64
A ratio between the number of buffer underruns and the total number of system-level audio callbacks over the given update interval.
Trait Implementations
sourceimpl Clone for AudioRenderCapacityEvent
impl Clone for AudioRenderCapacityEvent
sourcefn clone(&self) -> AudioRenderCapacityEvent
fn clone(&self) -> AudioRenderCapacityEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations
impl RefUnwindSafe for AudioRenderCapacityEvent
impl Send for AudioRenderCapacityEvent
impl Sync for AudioRenderCapacityEvent
impl Unpin for AudioRenderCapacityEvent
impl UnwindSafe for AudioRenderCapacityEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more