You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
queue a media element task</a> to <a spec="dom" lt="fire an event">fire
1817
+
1. [=Queue a media element task=] to <a spec="dom" lt="fire an event">fire
1823
1818
an event</a> named {{BaseAudioContext/statechange}} at the {{AudioContext}}.
1824
1819
</div>
1825
1820
@@ -1969,39 +1964,39 @@ Methods</h4>
1969
1964
1970
1965
1. If [=this=]'s [=relevant global object=]'s [=associated Document=] is not [=fully active=] then return [=a promise rejected with=] "{{InvalidStateError}}" {{DOMException}}.
1971
1966
1972
-
2. Let <var>promise</var> be a new Promise.
1967
+
1. Let <var>promise</var> be a new Promise.
1973
1968
1974
-
3. If the {{[[control thread state]]}} on the
1969
+
1. If the {{[[control thread state]]}} on the
1975
1970
{{AudioContext}} is <code>closed</code> reject the
1976
1971
promise with {{InvalidStateError}}, abort these steps,
1977
1972
returning <var>promise</var>.
1978
1973
1979
-
4. Set {{[[suspended by user]]}} to <code>false</code>.
1974
+
1. Set {{[[suspended by user]]}} to <code>false</code>.
1980
1975
1981
-
5. If the {{[[control thread state]]}} on the
1976
+
1. If the {{[[control thread state]]}} on the
1982
1977
{{AudioContext}} is <code>suspended</code> and there is an ongoing [=interruption=]:
1983
1978
1984
1979
1. Queue a media element task</a> to execute the following steps:
1985
1980
1986
1981
1. Set the {{BaseAudioContext/state}} attribute of the {{AudioContext}} to "{{AudioContextState/interrupted}}".
1987
1982
1988
-
2. [=Queue a media element task=] to [=fire an event=] named
1983
+
1. [=Queue a media element task=] to [=fire an event=] named
1989
1984
{{BaseAudioContext/statechange}} at the {{AudioContext}}.
1990
1985
1991
-
2. Reject the promise with {{InvalidStateError}}, abort these steps,
1986
+
1. Reject the promise with {{InvalidStateError}}, abort these steps,
1992
1987
returning <var>promise</var>.
1993
1988
1994
-
6. If the context is not <a>allowed to start</a>, append
1989
+
1. If the context is not <a>allowed to start</a>, append
1995
1990
<var>promise</var> to {{BaseAudioContext/[[pending promises]]}} and
1996
1991
{{AudioContext/[[pending resume promises]]}} and abort these steps, returning
1997
1992
<var>promise</var>.
1998
1993
1999
-
7. Set the {{[[control thread state]]}} on the
1994
+
1. Set the {{[[control thread state]]}} on the
2000
1995
{{AudioContext}} to <code>running</code>.
2001
1996
2002
-
8. <a>Queue a control message</a> to resume the {{AudioContext}} with <var>promise</var>.
1997
+
1. <a>Queue a control message</a> to resume the {{AudioContext}} with <var>promise</var>.
2003
1998
2004
-
9. Return <var>promise</var>.
1999
+
1. Return <var>promise</var>.
2005
2000
</div>
2006
2001
2007
2002
<div id="context-resume" algorithm="run a control message in AudioContext">
@@ -2018,17 +2013,15 @@ Methods</h4>
2018
2013
3. Start <a href="#rendering-loop">rendering the audio graph</a>.
0 commit comments