Skip to content

Commit c39cef2

Browse files
Hernqvistpadenot
andauthored
Apply suggestions from code review
Co-authored-by: Paul Adenot <paul@paul.cx>
1 parent af18297 commit c39cef2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

index.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11574,17 +11574,17 @@ for the user experience, so if any of these occur it
1157411574
can be useful for the application to be able to detect them and possibly
1157511575
take some action to improve the playout.
1157611576

11577-
{{AudioPlayoutStats}} is a dedicated object for audio stats reporting;
11577+
{{AudioPlayoutStats}} is a dedicated object for audio statistics reporting;
1157811578
it reports audio underrun and playout latency statistics for the
11579-
{{AudioContext's}} playout path via
11579+
{{AudioContext's}} playback path via
1158011580
{{AudioDestinationNode}} and the associated output device. This allows
1158111581
applications to measure underruns occurring due to underperforming
1158211582
AudioWorklets as well as underruns and latency originating in the playout
1158311583
path between the {{AudioDestinationNode}} and the output device.
1158411584

1158511585
Underruns are defined in terms of [=underrun frames=] and [=underrun events=]:
1158611586
- An <dfn>underrun frame</dfn> is an audio frame played by the output device
11587-
that was not provided by the playout path.
11587+
that was not provided by the AudioContext.
1158811588
This happens when the playout path fails to provide audio frames
1158911589
to the output device on time, in which case underrun frames will be played
1159011590
(underrun frames are typically silence).
@@ -11688,9 +11688,9 @@ for details.
1168811688
<dl dfn-type=attribute dfn-for="AudioPlayoutStats">
1168911689
: <dfn>underrunDuration</dfn>
1169011690
::
11691-
Measures the duration of [=underrun frames=] played by the
11691+
Returns the duration of [=underrun frames=] played by the
1169211692
{{AudioContext}}, in seconds.
11693-
This metric can be used together with {{totalDuration}} to
11693+
NOTE: This metric can be used together with {{totalDuration}} to
1169411694
calculate the percentage of played out media that was not provided by
1169511695
the {{AudioContext}}.
1169611696

0 commit comments

Comments
 (0)