Skip to content

Commit af6b62d

Browse files
committed
more bikeshed fixes
1 parent 48e2309 commit af6b62d

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

index.bs

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8861,7 +8861,7 @@ enum OscillatorType {
88618861
<table class="simple" dfn-type=enum-value dfn-for="OscillatorType">
88628862
<caption>{{OscillatorType}} enumeration description</caption>
88638863
<thead>
8864-
<th>Enum value</th><th>Description</th>
8864+
<tr><th>Enum value</th><th>Description</th></tr>
88658865
<tbody>
88668866
<tr><td>"<dfn>sine</dfn>" <td>A sine wave
88678867
<tr><td>"<dfn>square</dfn>" <td>A square wave of duty period 0.5
@@ -9134,7 +9134,7 @@ enum PanningModelType {
91349134
<table class="simple" dfn-type=enum-value dfn-for="PanningModelType">
91359135
<caption>{{PanningModelType}} enumeration description</caption>
91369136
<thead>
9137-
<th>Enum value</th><th>Description</th>
9137+
<tr><th>Enum value</th><th>Description</th></tr>
91389138
<tbody>
91399139
<tr><td>"<dfn>equalpower</dfn>"
91409140
<td>
@@ -11732,35 +11732,36 @@ Methods</h4>
1173211732
1. Set {{[[average latency]]}} to <var>currentLatency</var>.
1173311733
1. Set {{[[minimum latency]]}} to <var>currentLatency</var>.
1173411734
1. Set {{[[maximum latency]]}} to <var>currentLatency</var>.
11735+
</dl>
1173511736

1173611737
<h4 id="update-audio-stats"> Updating the stats</h4>
1173711738
<div algorithm="update audio stats">
1173811739
Once per second, execute the update audio stats algorithm:
11739-
1. If {{[[audio context]]}} is not running, abort these steps.
11740-
1. Let <var>canUpdate</var> be false.
11741-
1. Let <var>document</var> be the current [=this=]'s
11742-
[=relevant global object=]'s [=associated Document=].
11743-
If <var>document</var> is [=Document/fully active=] and <var>document</var>'s
11744-
[=Document/visibility state=] is `"visible"`, set <var>canUpdate</var> to
11745-
true.
11746-
1. Let <var>permission</var> be the [=permission state=] for the permission
11747-
associated with [="microphone"=] access.
11748-
If <var>permission</var> is "granted", set <var>canUpdate</var> to true.
11749-
1. If <var>canUpdate</var> is false, abort these steps.
11750-
1. Set {{[[underrun duration]]}} to the total duration of all [=underrun events=]
11751-
(in seconds)
11752-
that have occurred in {{[[audio context]]}} playback since its construction.
11753-
1. Set {{[[underrun events]]}} to the total number of [=underrun events=]
11754-
that have occurred in {{[[audio context]]}} playback since its
11755-
construction.
11756-
1. Set {{[[total duration]]}} to {{[[underrun duration]]}} +
11757-
{{[[audio context]]}}.{{BaseAudioContext/currentTime}}.
11758-
1. Set {{[[average latency]]}} to the average playback latency (in seconds) of
11759-
{{[[audio context]]}} playback over the {{currently tracked interval}}.
11760-
1. Set {{[[minimum latency]]}} to the minimum playback latency (in seconds) of
11761-
{{[[audio context]]}} playback over the {{currently tracked interval}}.
11762-
1. Set {{[[maximum latency]]}} to the maximum playback latency (in seconds) of
11763-
{{[[audio context]]}} playback over the {{currently tracked interval}}.
11740+
1. If {{[[audio context]]}} is not running, abort these steps.
11741+
1. Let <var>canUpdate</var> be false.
11742+
1. Let <var>document</var> be the current [=this=]'s
11743+
[=relevant global object=]'s [=associated Document=].
11744+
If <var>document</var> is [=Document/fully active=] and <var>document</var>'s
11745+
[=Document/visibility state=] is `"visible"`, set <var>canUpdate</var> to
11746+
true.
11747+
1. Let <var>permission</var> be the [=permission state=] for the permission
11748+
associated with [="microphone"=] access.
11749+
If <var>permission</var> is "granted", set <var>canUpdate</var> to true.
11750+
1. If <var>canUpdate</var> is false, abort these steps.
11751+
1. Set {{[[underrun duration]]}} to the total duration of all [=underrun events=]
11752+
(in seconds)
11753+
that have occurred in {{[[audio context]]}} playback since its construction.
11754+
1. Set {{[[underrun events]]}} to the total number of [=underrun events=]
11755+
that have occurred in {{[[audio context]]}} playback since its
11756+
construction.
11757+
1. Set {{[[total duration]]}} to {{[[underrun duration]]}} +
11758+
{{[[audio context]]}}.{{BaseAudioContext/currentTime}}.
11759+
1. Set {{[[average latency]]}} to the average playback latency (in seconds) of
11760+
{{[[audio context]]}} playback over the {{currently tracked interval}}.
11761+
1. Set {{[[minimum latency]]}} to the minimum playback latency (in seconds) of
11762+
{{[[audio context]]}} playback over the {{currently tracked interval}}.
11763+
1. Set {{[[maximum latency]]}} to the maximum playback latency (in seconds) of
11764+
{{[[audio context]]}} playback over the {{currently tracked interval}}.
1176411765
</div>
1176511766

1176611767
<h4>Privacy considerations for {{AudioPlaybackStats}}</h4>

0 commit comments

Comments
 (0)