Struct web_audio_api::AudioRenderCapacityEvent
source · pub struct AudioRenderCapacityEvent {
pub timestamp: f64,
pub average_load: f64,
pub peak_load: f64,
pub underrun_ratio: f64,
pub event: Event,
}
Expand description
Performance metrics of the rendering thread
Fields§
§timestamp: f64
The start time of the data collection period in terms of the associated AudioContext’s currentTime
average_load: f64
An average of collected load values over the given update interval
peak_load: f64
A maximum value from collected load values over the given update interval.
underrun_ratio: f64
A ratio between the number of buffer underruns and the total number of system-level audio callbacks over the given update interval.
event: Event
Inherits from this base Event
Trait Implementations§
source§impl Clone for AudioRenderCapacityEvent
impl Clone for AudioRenderCapacityEvent
source§fn clone(&self) -> AudioRenderCapacityEvent
fn clone(&self) -> AudioRenderCapacityEvent
Returns a copy 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 more