Skip to content

Commit 2f9d535

Browse files
gabrielsanbritohoch
authored andcommitted
Only change 'Queue a media element task' for modified sections
1 parent 9c56010 commit 2f9d535

1 file changed

Lines changed: 34 additions & 17 deletions

File tree

index.bs

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,8 @@ Methods</h4>
12491249
2. Reject <var>promise</var> with <var>error</var>, and remove it from
12501250
{{BaseAudioContext/[[pending promises]]}}.
12511251

1252-
3. [=Queue a media element task=] to invoke
1252+
3. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
1253+
Queue a media element task</a> to invoke
12531254
{{BaseAudioContext/decodeAudioData()/errorCallback!!argument}} with |error|.
12541255

12551256
5. Return <var>promise</var>.
@@ -1285,7 +1286,8 @@ Methods</h4>
12851286
[[WEBCODECS]].
12861287

12871288
4. If |can decode| is `false`,
1288-
[=Queue a media element task=] to execute the following steps:
1289+
<a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
1290+
queue a media element task</a> to execute the following steps:
12891291

12901292
1. Let <var>error</var> be a <code>DOMException</code>
12911293
whose name is {{EncodingError}}.
@@ -1305,7 +1307,8 @@ Methods</h4>
13051307
the sample-rate of {{BaseAudioContext/decodeAudioData(audioData,
13061308
successCallback, errorCallback)/audioData!!argument}}.
13071309

1308-
2. [=Queue a media element task=] to execute the following steps:
1310+
2. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
1311+
queue a media element task</a> to execute the following steps:
13091312

13101313
1. Let <var>buffer</var> be an
13111314
{{AudioBuffer}} containing the final result
@@ -1808,13 +1811,15 @@ Methods</h4>
18081811
There is no need to notify the control thread in this case.
18091812
</div>
18101813

1811-
4. [=Queue a media element task=] to execute the following steps:
1814+
4. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
1815+
queue a media element task</a> to execute the following steps:
18121816

18131817
1. Resolve <em>promise</em>.
18141818
2. If the {{BaseAudioContext/state}} attribute of the {{AudioContext}} is not already "{{AudioContextState/closed}}":
18151819
1. Set the {{BaseAudioContext/state}} attribute of the {{AudioContext}} to "{{AudioContextState/closed}}".
18161820

1817-
1. [=Queue a media element task=] to <a spec="dom" lt="fire an event">fire
1821+
1. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
1822+
queue a media element task</a> to <a spec="dom" lt="fire an event">fire
18181823
an event</a> named {{BaseAudioContext/statechange}} at the {{AudioContext}}.
18191824
</div>
18201825

@@ -2018,15 +2023,17 @@ Methods</h4>
20182023
3. Start <a href="#rendering-loop">rendering the audio graph</a>.
20192024

20202025
4. In case of failure,
2021-
[=Queue a media element task=] to execute the following steps:
2026+
<a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2027+
queue a media element task</a> to execute the following steps:
20222028

20232029
1. Reject all promises from {{AudioContext/[[pending resume promises]]}}
20242030
in order, then clear {{AudioContext/[[pending resume promises]]}}.
20252031

20262032
2. Additionally, remove those promises from {{BaseAudioContext/[[pending
20272033
promises]]}}.
20282034

2029-
5. [=Queue a media element task=] to execute the following steps:
2035+
5. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2036+
queue a media element task</a> to execute the following steps:
20302037

20312038
1. Resolve all promises from {{AudioContext/[[pending resume promises]]}} in order.
20322039
1. Clear {{AudioContext/[[pending resume promises]]}}. Additionally, remove those
@@ -2100,7 +2107,8 @@ Methods</h4>
21002107

21012108
2. Set the {{[[rendering thread state]]}} on the {{AudioContext}} to <code>suspended</code>.
21022109

2103-
3. [=Queue a media element task=] to execute the following steps:
2110+
3. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2111+
queue a media element task</a> to execute the following steps:
21042112

21052113
1. Resolve <var>promise</var>.
21062114

@@ -2172,13 +2180,15 @@ Methods</h4>
21722180

21732181
1. If both |sinkId| and {{AudioContext/[[sink ID]]}} are a type of
21742182
{{DOMString}}, and they are equal to each other,
2175-
[=Queue a media element task=] to resolve |p| and abort these steps.
2183+
<a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2184+
queue a media element task</a> to resolve |p| and abort these steps.
21762185

21772186
1. If |sinkId| is a type of {{AudioSinkOptions}} and
21782187
{{AudioContext/[[sink ID]]}} is a type of {{AudioSinkInfo}}, and
21792188
{{AudioSinkOptions/type}} in |sinkId| and {{AudioSinkInfo/type}} in
21802189
{{AudioContext/[[sink ID]]}} are equal,
2181-
[=Queue a media element task=] to resolve |p| and abort these steps.
2190+
<a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2191+
queue a media element task</a> to resolve |p| and abort these steps.
21822192

21832193
1. Let |wasRunning| be true.
21842194

@@ -2194,7 +2204,8 @@ Methods</h4>
21942204
1. Set the {{[[rendering thread state]]}} on the {{AudioContext}} to
21952205
<code>"suspended"</code>.
21962206

2197-
1. [=Queue a media element task=] to execute the following steps:
2207+
1. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2208+
Queue a media element task</a> to execute the following steps:
21982209

21992210
1. If the {{BaseAudioContext/state}} attribute of the
22002211
{{AudioContext}} is not already "{{AudioContextState/suspended}}":
@@ -2215,7 +2226,8 @@ Methods</h4>
22152226
In case of failure, reject |p| with "{{InvalidAccessError}}" abort
22162227
the following steps.
22172228

2218-
1. [=Queue a media element task=] to execute the following steps:
2229+
1. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2230+
Queue a media element task</a> to execute the following steps:
22192231

22202232
1. If |sinkId| is a type of {{DOMString}}, set
22212233
{{AudioContext/[[sink ID]]}} to |sinkId|. Abort these steps.
@@ -2241,7 +2253,8 @@ Methods</h4>
22412253
1. Set the {{[[rendering thread state]]}} on the {{AudioContext}} to
22422254
<code>"running"</code>.
22432255

2244-
1. [=Queue a media element task=] to execute the following steps:
2256+
1. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2257+
Queue a media element task</a> to execute the following steps:
22452258

22462259
1. If the {{BaseAudioContext/state}} attribute of the
22472260
{{AudioContext}} is not already "{{AudioContextState/running}}":
@@ -2616,7 +2629,8 @@ Methods</h4>
26162629
buffer.
26172630

26182631
<li>Once the rendering is complete,
2619-
[=Queue a media element task=] to execute the following steps:
2632+
<a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2633+
queue a media element task</a> to execute the following steps:
26202634

26212635
<ol>
26222636
<li>Resolve the <var ignore>promise</var> created by {{startRendering()}}
@@ -2680,9 +2694,11 @@ Methods</h4>
26802694
2. Start <a href="#rendering-loop">rendering the audio graph</a>.
26812695

26822696
3. In case of failure,
2683-
[=Queue a media element task=] to reject |promise| and abort the remaining steps.
2697+
<a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2698+
queue a media element task</a> to reject |promise| and abort the remaining steps.
26842699

2685-
4. [=Queue a media element task=] to execute the following steps:
2700+
4. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2701+
queue a media element task</a> to execute the following steps:
26862702

26872703
1. Resolve <var>promise</var>.
26882704

@@ -10537,7 +10553,8 @@ Methods</h5>
1053710553
<a>node name to processor constructor map</a>
1053810554
of the associated {{AudioWorkletGlobalScope}}.
1053910555

10540-
1. [=Queue a media element task=] to append the key-value pair |name| →
10556+
1. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
10557+
queue a media element task</a> to append the key-value pair |name| →
1054110558
|parameterDescriptorSequence| to the <a>node name to parameter descriptor map</a> of the
1054210559
associated {{BaseAudioContext}}.
1054310560
</div>

0 commit comments

Comments
 (0)