|
311 | 311 | 4. Let |decoded outputs| be a [=list=] of decoded video data outputs emitted
|
312 | 312 | by {{AudioDecoder/[[codec implementation]]}}.
|
313 | 313 | 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 |
315 | 315 | |decoded outputs|.
|
316 | 316 | </dd>
|
317 | 317 |
|
|
334 | 334 | 2. Let |decoded outputs| be a [=list=] of decoded audio data outputs emitted
|
335 | 335 | by {{AudioDecoder/[[codec implementation]]}}.
|
336 | 336 | 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 |
338 | 338 | |decoded outputs|.
|
339 | 339 | 4. Queue a task on the [=control thread=] event loop to resolve |promise|.
|
340 | 340 | </dd>
|
|
388 | 388 | Algorithms {#audiodecoder-algorithms}
|
389 | 389 | -------------------------------------
|
390 | 390 | <dl>
|
391 |
| - <dt><dfn>Output AudioDatas</dfn> (with |outputs|)</dt> |
| 391 | + <dt><dfn>Output AudioData</dfn> (with |outputs|)</dt> |
392 | 392 | <dd>
|
393 | 393 | Run these steps:
|
394 | 394 | 1. For each |output| in |outputs|:
|
|
1906 | 1906 | readonly attribute unsigned long long duration;
|
1907 | 1907 | readonly attribute unsigned long long timestamp;
|
1908 | 1908 |
|
1909 |
| - undefined copyFromChannel(BufferSource destination, unsigned long channelNumber); |
| 1909 | + undefined copyTo([AllowShared] BufferSource destination, unsigned long planeNumber); |
1910 | 1910 | AudioData clone();
|
1911 | 1911 | undefined close();
|
1912 | 1912 | };
|
|
2021 | 2021 |
|
2022 | 2022 | ### Methods ###{#audiodata-methods}
|
2023 | 2023 | : <dfn method for=AudioData>
|
2024 |
| - copyFromChannel(|destination|, |channelNumber|) |
| 2024 | + copyTo(|destination|, |planeNumber|) |
2025 | 2025 | </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 |
2027 | 2027 | destination buffer.
|
2028 | 2028 |
|
2029 | 2029 | When invoked, run these steps:
|
|
2036 | 2036 | {{TypeError}}.
|
2037 | 2037 | 4. Let |resource| be the [=media resource=] referenced by
|
2038 | 2038 | {{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|. |
2042 | 2042 |
|
2043 | 2043 | : <dfn method for=AudioData>clone()</dfn>
|
2044 | 2044 | :: Creates a new AudioData with a reference to the same [=media resource=].
|
|
0 commit comments