@@ -1522,6 +1522,13 @@ and to allow it only when the {{AudioContext}}'s [=relevant global object=] has
1522
1522
initial value is <code>""</code>, which means the default audio output
1523
1523
device.
1524
1524
1525
+ : <dfn>[[sink ID at construction]]</dfn>
1526
+ ::
1527
+ A {{DOMString}} or an {{AudioSinkInfo}} representing the identifier
1528
+ or the information of the audio output device requested at construction,
1529
+ respectively. The initial value is <code>""</code>, which means the
1530
+ default audio output device.
1531
+
1525
1532
: <dfn>[[pending resume promises]]</dfn>
1526
1533
::
1527
1534
An ordered list to store pending {{Promise}}s created by
@@ -1592,11 +1599,11 @@ Constructors</h4>
1592
1599
in {{AudioContext/[[sink ID]]}} are equal, abort these substeps.
1593
1600
1594
1601
1. If |sinkId| is a type of {{DOMString}}, set
1595
- {{AudioContext/[[sink ID]]}} to |sinkId| and abort these
1602
+ {{AudioContext/[[sink ID at construction ]]}} to |sinkId| and abort these
1596
1603
substeps.
1597
1604
1598
1605
1. If |sinkId| is a type of {{AudioSinkOptions}}, set
1599
- {{AudioContext/[[sink ID]]}} to a new instance of
1606
+ {{AudioContext/[[sink ID at construction ]]}} to a new instance of
1600
1607
{{AudioSinkInfo}} created with the value of
1601
1608
{{AudioSinkOptions/type}} of |sinkId|.
1602
1609
@@ -1633,31 +1640,30 @@ Constructors</h4>
1633
1640
Sending a <a>control message</a> to start processing means
1634
1641
executing the following steps:
1635
1642
1636
- 1. Let |document| be the [=current settings object=]'s [=relevant global object=]'s
1637
- [=associated Document=].
1638
-
1639
1643
1. Let |validationResult| be the return value of
1640
1644
<a href="#validating-sink-identifier">sink identifier validation
1641
- </a> of {{AudioContext/[[sink ID]]}}.
1645
+ </a> of {{AudioContext/[[sink ID at construction ]]}}.
1642
1646
1643
- 1. If |validationResult| is <code>false</code>, [=queue a
1644
- media element task=] to [=fire an event=] named {{AudioContext/error}}
1645
- at the {{AudioContext}}, and abort the following steps.
1647
+ 1. If |validationResult| is <code>false</code>, execute the following steps:
1648
+
1649
+ 1. Set {{AudioContext/[[sink ID]]}} to the empty string.
1650
+
1651
+ 1. [=Queue a media element task=] to [=fire an event=]
1652
+ named {{AudioContext/error}} at the {{AudioContext}},
1653
+ and abort the following steps.
1646
1654
1647
1655
1. Attempt to [=acquire system resources=] to use a following audio output device
1648
- based on {{AudioContext/[[sink ID]]}} for rendering:
1656
+ based on {{AudioContext/[[sink ID at construction ]]}} for rendering:
1649
1657
1650
1658
* The default audio output device for the empty string.
1651
- * An audio output device identified by {{AudioContext/[[sink ID]]}}.
1652
-
1653
- 1. If resource acquisition fails, execute the following steps:
1659
+ * An audio output device identified by {{AudioContext/[[sink ID at construction]]}}.
1654
1660
1655
- 1. If |document| is not allowed to use the feature identified by
1656
- <code>"speaker-selection"</code>, abort these substeps.
1661
+ 1. If resource acquisition fails, [=queue a media element
1662
+ task=] to [=fire an event=] named
1663
+ {{AudioContext/error}} at the {{AudioContext}}, and
1664
+ abort the following steps.
1657
1665
1658
- 1. [=Queue a media element task=] to [=fire an event=] named
1659
- {{AudioContext/error}} at the {{AudioContext}}, and abort the following
1660
- steps.
1666
+ 1. Set {{AudioContext/[[sink ID]]}} to the value of {{AudioContext/[[sink ID at construction]]}}.
1661
1667
1662
1668
1. Set [=this=] {{[[rendering thread state]]}} to <code>running</code> on the
1663
1669
{{AudioContext}}.
0 commit comments