AudioPlaybackStats Class
The statistics of the playback of an AudioContext (https://webaudio.github.io/web-audio-api/#AudioPlaybackStats). As there is no audio device, the played duration is the time during which the context is running, and the underruns are the times skipped by a late rendering.
public sealed class AudioPlaybackStatsRemarks
The values do not change during a task or a microtask of the scripts: they are read once, until the next microtask checkpoint.
See also
Properties
| Name | Description |
|---|---|
| AverageLatency | Gets the average latency in seconds. |
| MaximumLatency | Gets the maximum latency in seconds. |
| MinimumLatency | Gets the minimum latency in seconds. |
| TotalDuration | Gets the duration in seconds of the playback. |
| UnderrunDuration | Gets the duration in seconds of the underruns. |
| UnderrunEvents | Gets the number of underruns. |
AverageLatency
AudioContext.csMaximumLatency
AudioContext.csMinimumLatency
AudioContext.csTotalDuration
AudioContext.csGets the duration in seconds of the playback.
public double TotalDuration { get; }Property value
See also
UnderrunDuration
AudioContext.csGets the duration in seconds of the underruns.
public double UnderrunDuration { get; }Property value
See also
UnderrunEvents
AudioContext.csMethods
| Name | Description |
|---|---|
| ResetLatency() | Restarts the statistics of the latency: the minimum and the maximum become the average latency. |
ResetLatency()
AudioContext.csRestarts the statistics of the latency: the minimum and the maximum become the average latency.
public void ResetLatency()