Skip to content

Commit 5b33d7f

Browse files
committed
Fix typos, rename copyFromChannel -> copyTo.
1 parent 27174c4 commit 5b33d7f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

index.src.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311
4. Let |decoded outputs| be a [=list=] of decoded video data outputs emitted
312312
by {{AudioDecoder/[[codec implementation]]}}.
313313
5. If |decoded outputs| is not empty, queue a task on the [=control thread=]
314-
event loop to run the [=Output AudioDatas=] algorithm with
314+
event loop to run the [=Output AudioData=] algorithm with
315315
|decoded outputs|.
316316
</dd>
317317

@@ -334,7 +334,7 @@
334334
2. Let |decoded outputs| be a [=list=] of decoded audio data outputs emitted
335335
by {{AudioDecoder/[[codec implementation]]}}.
336336
3. If |decoded outputs| is not empty, queue a task on the [=control thread=]
337-
event loop to run the [=Output AudioDatas=] algorithm with
337+
event loop to run the [=Output AudioData=] algorithm with
338338
|decoded outputs|.
339339
4. Queue a task on the [=control thread=] event loop to resolve |promise|.
340340
</dd>
@@ -388,7 +388,7 @@
388388
Algorithms {#audiodecoder-algorithms}
389389
-------------------------------------
390390
<dl>
391-
<dt><dfn>Output AudioDatas</dfn> (with |outputs|)</dt>
391+
<dt><dfn>Output AudioData</dfn> (with |outputs|)</dt>
392392
<dd>
393393
Run these steps:
394394
1. For each |output| in |outputs|:
@@ -1906,7 +1906,7 @@
19061906
readonly attribute unsigned long long duration;
19071907
readonly attribute unsigned long long timestamp;
19081908

1909-
undefined copyFromChannel(BufferSource destination, unsigned long channelNumber);
1909+
undefined copyTo([AllowShared] BufferSource destination, unsigned long planeNumber);
19101910
AudioData clone();
19111911
undefined close();
19121912
};
@@ -2021,9 +2021,9 @@
20212021

20222022
### Methods ###{#audiodata-methods}
20232023
: <dfn method for=AudioData>
2024-
copyFromChannel(|destination|, |channelNumber|)
2024+
copyTo(|destination|, |planeNumber|)
20252025
</dfn>
2026-
:: Copies the samples from the specified channel of the {{AudioData}} to the
2026+
:: Copies the samples from the specified plane of the {{AudioData}} to the
20272027
destination buffer.
20282028

20292029
When invoked, run these steps:
@@ -2036,9 +2036,9 @@
20362036
{{TypeError}}.
20372037
4. Let |resource| be the [=media resource=] referenced by
20382038
{{AudioData/[[resource reference]]}}.
2039-
5. Let |channelBytes| be the region of |resource| corresponding to
2040-
|channelNumber|.
2041-
6. Copy the |channelBytes| into |destination|.
2039+
5. Let |planeBytes| be the region of |resource| corresponding to
2040+
|planeNumber|.
2041+
6. Copy the |planeBytes| into |destination|.
20422042

20432043
: <dfn method for=AudioData>clone()</dfn>
20442044
:: Creates a new AudioData with a reference to the same [=media resource=].

0 commit comments

Comments
 (0)