Skip to content

Commit

Permalink
Clarify how resetLatency() relates to run-to-completion semantics.
Browse files Browse the repository at this point in the history
  • Loading branch information
henbos committed Jan 15, 2024
1 parent 7421d0c commit 9b88583
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ <h4>The MediaStreamTrackAudioStats interface</h4>
<dfn data-lt="minimum input latency">minimum input latency</dfn>
and <dfn data-lt="maximum input latency">maximum input
latency</dfn> which are the average, minimum and maximum observed
measurements since the last <dfn data-lt="latency reset">latency
reset</dfn>.
measurements since the last <dfn data-lt="latency reset time">
latency reset time</dfn>.
</p>
</li>
</ul>
Expand All @@ -600,8 +600,10 @@ <h4>The MediaStreamTrackAudioStats interface</h4>
and
<dfn class=export data-dfn-for="MediaStreamTrackAudioStats">[[\MaximumLatency]]</dfn>,
initialized to 0.</p>
<p>Let the {{MediaStreamTrackAudioStats}} also have an internal slot
<p>Let the {{MediaStreamTrackAudioStats}} also have internal slots
<dfn class=export data-dfn-for="MediaStreamTrackAudioStats">[[\LastTask]]</dfn>
and
<dfn class=export data-dfn-for="MediaStreamTrackAudioStats">[[\LastExposureTime]]</dfn>,
initialized to <code>undefined</code>.</p>
<p>The <dfn data-lt="expose audio frame counters steps">expose audio
frame counters steps</dfn> are the following:</p>
Expand Down Expand Up @@ -634,6 +636,8 @@ <h4>The MediaStreamTrackAudioStats interface</h4>
[= minimum input latency =] and
set {{MediaStreamTrackAudioStats/[[MaximumLatency]]}} to the
[= maximum input latency =].</p>
<p>Update {{MediaStreamTrackAudioStats/[[LastExposureTime]]}} to
reflect the time that these metrics were exposed.</p>
<div class="note">
<p>Only updating these counters once per [=task=] preserves the
<a href="https://w3ctag.github.io/design-principles/#js-rtc">
Expand Down Expand Up @@ -764,7 +768,8 @@ <h4>Methods</h4>
{{MediaStreamTrackAudioStats/[[Latency]]}}.</p>
</li>
<li>
<p>Perform a [= latency reset =].</p>
<p>Set the [= latency reset time =] to
{{MediaStreamTrackAudioStats/[[LastExposureTime]]}}.</p>
</li>
</ul>
</p>
Expand Down

0 comments on commit 9b88583

Please sign in to comment.