Skip to content

Commit 080699d

Browse files
gabrielsanbritohoch
authored andcommitted
Adding the interrupted state
1 parent dfcea38 commit 080699d

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

index.bs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,8 @@ for="BaseAudioContext">[[control thread state]]</dfn> that take values from
718718
enum AudioContextState {
719719
"suspended",
720720
"running",
721-
"closed"
721+
"closed",
722+
"interrupted"
722723
};
723724
</pre>
724725

@@ -746,6 +747,12 @@ enum AudioContextState {
746747
<td>
747748
This context has been released, and can no longer be used to
748749
process audio. All system audio resources have been released.
750+
<tr>
751+
<td>
752+
"<dfn>interrupted</dfn>"
753+
<td>
754+
This context is currently interrupted and cannot process audio
755+
until the interruption ends.
749756
</table>
750757
</div>
751758

@@ -11534,7 +11541,7 @@ and a <a>rendering thread</a>.
1153411541

1153511542
The <dfn>control thread</dfn> is the thread from which the
1153611543
{{AudioContext}} is instantiated, and from which authors
11537-
manipulate the audio graph, that is, from where the operation on a
11544+
manipulate the audio graph, that is, from where the operations on a
1153811545
{{BaseAudioContext}} are invoked. The <dfn>rendering thread</dfn>
1153911546
is the thread on which the actual audio output is computed, in
1154011547
reaction to the calls from the <a>control thread</a>. It can be a
@@ -11641,7 +11648,7 @@ The algorithm for rendering a block of audio from a {{BaseAudioContext}}
1164111648
in the algorithm of <a href="#rendering-a-graph">rendering a graph</a>.
1164211649

1164311650
The {{AudioContext}} <a>rendering thread</a> is driven by a
11644-
<dfn>system-level audio callback</dfn>, that is periodically
11651+
<dfn>system-level audio callback</dfn>, that is periodically called
1164511652
at regular intevals. Each call has a <dfn>system-level audio callback buffer
1164611653
size</dfn>, which is a varying number of sample-frames that needs to be
1164711654
computed on time before the next <a>system-level audio callback</a> arrives.

0 commit comments

Comments
 (0)