@@ -2018,9 +2018,9 @@ Constructors</h4>
2018
2018
1. If |document| is not allowed to use the feature identified by
2019
2019
<code>"speaker-selection"</code>, abort these substeps.
2020
2020
2021
- 1. [=queue a media element task=] to [=fire an event=] using {{ErrorEvent}}
2022
- at the {{AudioContext/error}} of the {{AudioContext}}, and abort the
2023
- following steps.
2021
+ 1. [=Queue a media element task=] to [=fire an event=] named
2022
+ {{AudioContext/error}} at the {{AudioContext}}, and abort the following
2023
+ steps.
2024
2024
2025
2025
1. Set [=this=] {{[[rendering thread state]]}} to <code>running</code> on the
2026
2026
{{AudioContext}}.
@@ -2475,9 +2475,8 @@ Methods</h4>
2475
2475
2476
2476
1. Set the {{BaseAudioContext/state}} attribute of the {{AudioContext}} to "{{AudioContextState/running}}".
2477
2477
2478
- 1. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2479
- queue a media element task</a> to <a spec="dom" lt="fire an event">fire
2480
- an event </a> named {{BaseAudioContext/statechange}} at the {{AudioContext}}.
2478
+ 1. [=Queue a media element task=] to [=fire an event=] named
2479
+ {{BaseAudioContext/statechange}} at the {{AudioContext}}.
2481
2480
</div>
2482
2481
2483
2482
<div>
@@ -2546,9 +2545,8 @@ Methods</h4>
2546
2545
2547
2546
1. Set the {{BaseAudioContext/state}} attribute of the {{AudioContext}} to "{{AudioContextState/suspended}}".
2548
2547
2549
- 1. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
2550
- queue a media element task</a> to <a spec="dom" lt="fire an event">fire
2551
- an event </a> named {{BaseAudioContext/statechange}} at the {{AudioContext}}.
2548
+ 1. [=Queue a media element task=] to [=fire an event=] named
2549
+ {{BaseAudioContext/statechange}} at the {{AudioContext}}.
2552
2550
</div>
2553
2551
2554
2552
While an {{AudioContext}} is suspended,
@@ -2648,9 +2646,9 @@ Methods</h4>
2648
2646
2649
2647
1. Set the {{BaseAudioContext/state}} attribute of the
2650
2648
{{AudioContext}} to "{{AudioContextState/suspended}}".
2651
-
2652
- 1. <a spec="dom" lt="fire an event">Fire an event</a> named
2653
- {{BaseAudioContext/statechange}} at the associated {{AudioContext}}.
2649
+
2650
+ 1. [=Fire an event=] named {{BaseAudioContext/statechange}} at the
2651
+ associated {{AudioContext}}.
2654
2652
2655
2653
1. Attempt to <a href="#acquiring">acquire system resources</a> to use
2656
2654
a following audio output device based on {{AudioContext/[[sink ID]]}}
@@ -2681,8 +2679,8 @@ Methods</h4>
2681
2679
2682
2680
1. Resolve |p|.
2683
2681
2684
- 1. <a spec="dom" lt="fire an event">Fire an event</a> named
2685
- {{AudioContext/sinkchange}} at the associated {{AudioContext}}.
2682
+ 1. [=Fire an event=] named {{AudioContext/sinkchange}} at the
2683
+ associated {{AudioContext}}.
2686
2684
2687
2685
1. If |wasRunning| is true:
2688
2686
@@ -2698,8 +2696,8 @@ Methods</h4>
2698
2696
1. Set the {{BaseAudioContext/state}} attribute of the
2699
2697
{{AudioContext}} to "{{AudioContextState/running}}".
2700
2698
2701
- 1. <a spec="dom" lt="fire an event">Fire an event</a> named
2702
- {{BaseAudioContext/statechange}} at the associated {{AudioContext}}.
2699
+ 1. [=Fire an event=] named {{BaseAudioContext/statechange}} at the
2700
+ associated {{AudioContext}}.
2703
2701
</div>
2704
2702
2705
2703
</ins>
@@ -2956,9 +2954,8 @@ Dictionary {{AudioTimestamp}} Members</h5>
2956
2954
<dl dfn-type=method dfn-for="AudioRenderCapacity">
2957
2955
: <dfn>start(options)</dfn>
2958
2956
::
2959
- Starts metric collection and analysis. This will repeatedly
2960
- <a spec="dom" lt="fire an event">fire an event</a> named
2961
- {{AudioRenderCapacity/update}} at {{AudioRenderCapacity}}, using
2957
+ Starts metric collection and analysis. This will repeatedly [=fire an event=] named
2958
+ {{AudioRenderCapacity/update}} at the {{AudioRenderCapacity}}, using
2962
2959
{{AudioRenderCapacityEvent}}, with the given update interval in
2963
2960
{{AudioRenderCapacityOptions}}.
2964
2961
@@ -3297,14 +3294,13 @@ Methods</h4>
3297
3294
queue a media element task</a> to execute the following steps:
3298
3295
3299
3296
<ol>
3300
- <li>Resolve the <var ignore>promise</var> created by {{startRendering()}} with {{[[rendered buffer]]}}.
3297
+ <li>Resolve the <var ignore>promise</var> created by {{startRendering()}}
3298
+ with {{[[rendered buffer]]}}.
3301
3299
3302
- <li><a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
3303
- queue a media element task</a> to
3304
- <a spec="dom" lt="fire an event">fire an event</a> named
3305
- {{OfflineAudioContext/complete}} using an instance of {{OfflineAudioCompletionEvent}}
3306
- whose `renderedBuffer` property is set to
3307
- {{[[rendered buffer]]}}.
3300
+ <li>[=Queue a media element task=] to [=fire an event=] named
3301
+ {{OfflineAudioContext/complete}} at the {{OfflineAudioContext}} using
3302
+ {{OfflineAudioCompletionEvent}} whose `renderedBuffer` property is set to
3303
+ {{[[rendered buffer]]}}.
3308
3304
3309
3305
</ol>
3310
3306
@@ -3373,9 +3369,8 @@ Methods</h4>
3373
3369
1. Set the {{BaseAudioContext/state}} attribute of the
3374
3370
{{OfflineAudioContext}} to "{{AudioContextState/running}}".
3375
3371
3376
- 1. <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task">
3377
- queue a media element task</a> to <a spec="dom" lt="fire an event">fire
3378
- an event</a> named {{BaseAudioContext/statechange}} at the {{OfflineAudioContext}}.
3372
+ 1. [=Queue a media element task=] to [=fire an event=] named
3373
+ {{BaseAudioContext/statechange}} at the {{OfflineAudioContext}}.
3379
3374
3380
3375
</div>
3381
3376
@@ -11512,10 +11507,10 @@ the <a>rendering thread</a> will invoke the algorithm below:
11512
11507
of this {{AudioWorkletGlobalScope}}'s
11513
11508
[=pending processor construction data=] respectively.
11514
11509
11515
- 1. <a spec=webidl lt=construct>Construct a callback function</a> from |processorCtor| with the argument
11516
- of |deserializedOptions|. If any exceptions are thrown in the callback, <a>queue a task</a> to
11517
- the <a>control thread</a> to <a spec="dom" lt=" fire an event">fire an event</a> named
11518
- {{AudioWorkletNode/processorerror}} using {{ErrorEvent}} at |nodeReference| .
11510
+ 1. <a spec=webidl lt=construct>Construct a callback function</a> from |processorCtor| with
11511
+ the argument of |deserializedOptions|. If any exceptions are thrown in the callback,
11512
+ <a>queue a task</a> to the <a>control thread</a> to [= fire an event=] named
11513
+ {{AudioWorkletNode/processorerror}} at |nodeReference| using {{ErrorEvent}}.
11519
11514
11520
11515
1. Empty the [=pending processor construction data=] slot.
11521
11516
</div>
@@ -11699,10 +11694,8 @@ Attributes</h5>
11699
11694
When an unhandled exception is thrown from the processor's
11700
11695
<code>constructor</code>, <code>process</code> method,
11701
11696
or any user-defined class method, the processor will
11702
- <a href="https://html.spec.whatwg.org/multipage/media.html#queue-a-media-element-task"> queue a media
11703
- element task</a> to <a spec="dom" lt="fire an event">fire an event</a> named <dfn event>processorerror</dfn> using
11704
- <a href="https://html.spec.whatwg.org/multipage/webappapis.html#the-errorevent-interface">
11705
- ErrorEvent</a> at the associated {{AudioWorkletNode}}.
11697
+ [=queue a media element task=] to [=fire an event=] named <dfn event>processorerror</dfn>
11698
+ at the associated {{AudioWorkletNode}} using {{ErrorEvent}}.
11706
11699
11707
11700
The <code>ErrorEvent</code> is created and initialized
11708
11701
appropriately with its <code>message</code>,
@@ -12862,10 +12855,9 @@ task queue=] of its associated {{BaseAudioContext}}.
12862
12855
12863
12856
1. [=Making a buffer available for reading|Make a silent output buffer available for reading=].
12864
12857
12865
- 1. <a>Queue a task</a> to the <a>control thread</a>
12866
- <a spec="dom" lt="fire an event">fire</a> an
12867
- {{ErrorEvent}} named {{AudioWorkletNode/processorerror}} at the
12868
- associated {{AudioWorkletNode}}.
12858
+ 1. <a>Queue a task</a> to the <a>control thread</a> to [=fire an event=]
12859
+ named {{AudioWorkletNode/processorerror}} at the associated
12860
+ {{AudioWorkletNode}} using {{ErrorEvent}}.
12869
12861
12870
12862
5. If this {{AudioNode}} is a <a>destination node</a>,
12871
12863
[=Recording the input|record the input=] of this {{AudioNode}}.
@@ -12949,7 +12941,7 @@ The {{AudioContext}} |audioContext| performs the following steps on <a>rendering
12949
12941
12950
12942
1. [=Queue a media element task=] to execute the following steps:
12951
12943
12952
- 1. [=Fire an event=] using {{ErrorEvent }} at the |audioContext|'s {{AudioContext/error }}.
12944
+ 1. [=Fire an event=] named {{AudioContext/error }} at |audioContext| using {{ErrorEvent }}.
12953
12945
12954
12946
1. Set the |audioContext|'s {{[[suspended by user]]}} to <code>false</code>.
12955
12947
@@ -12958,15 +12950,15 @@ The {{AudioContext}} |audioContext| performs the following steps on <a>rendering
12958
12950
1. Set the |audioContext|'s {{BaseAudioContext/state}} attribute to
12959
12951
"{{AudioContextState/suspended}}".
12960
12952
12961
- 1. [=Fire an event=] at the |audioContext|'s {{BaseAudioContext/statechange}}.
12953
+ 1. [=Fire an event=] named {{BaseAudioContext/statechange}} at the |audioContext| .
12962
12954
12963
12955
1. Abort these steps.
12964
12956
12965
12957
1. If the |audioContext|'s {{[[rendering thread state]]}} is <code>suspended</code>:
12966
12958
12967
12959
1. [=Queue a media element task=]to execute the following steps:
12968
12960
12969
- 1. [=Fire an event=] using {{ErrorEvent }} at the |audioContext|'s {{AudioContext/error }}.
12961
+ 1. [=Fire an event=] named {{AudioContext/error }} at |audioContext| using {{ErrorEvent }}.
12970
12962
12971
12963
Note: An example of system audio resource errors would be when an external or wireless audio device
12972
12964
becoming disconnected during the active rendering of the {{AudioContext}}.
0 commit comments