|
198 | 198 | A <dfn>control message</dfn> defines a sequence of steps corresponding to a
|
199 | 199 | method invocation on a [=codec=] instance (e.g. `encode()`).
|
200 | 200 |
|
201 |
| -A <dfn>control message queue</dfn> is a a [=queue=] of |
| 201 | +A <dfn>control message queue</dfn> is a [=queue=] of |
202 | 202 | [=control messages=]. Each [=codec=] instance has a control message queue
|
203 | 203 | stored in an internal slot named
|
204 | 204 | <dfn id='control-message-queue-slot'>[[control message queue]]</dfn>.
|
|
221 | 221 | All control messages will return either `"processed"` or `"not processed"`.
|
222 | 222 | Returning `"processed"` indicates the message steps are being (or have been)
|
223 | 223 | executed and the message may be removed from the [=control message queue=].
|
224 |
| -`"not processed"` indicates the message must could not be processed at this time |
| 224 | +`"not processed"` indicates the message must not be processed at this time |
225 | 225 | and should remain in the [=control message queue=] to be retried later.
|
226 | 226 |
|
227 | 227 | To <dfn>Process the control message queue</dfn>, run these steps:
|
|
2038 | 2038 | 1. If {{AudioEncoderConfig/codec}} is not a <a>valid codec string</a>, return
|
2039 | 2039 | `false`.
|
2040 | 2040 | 2. If the {{AudioEncoderConfig}} has a codec-specific extension and the corresponding
|
2041 |
| - registration in the [[WEBCODECS-CODEC-REGISTRY]] defines steps to check whether the |
| 2041 | + registration in the [[WEBCODECS-CODEC-REGISTRY]] defines steps to check whether |
2042 | 2042 | the extension is a valid extension, return the result of running those steps.
|
2043 | 2043 | 3. Return `true`.
|
2044 | 2044 |
|
|
2603 | 2603 | memory. To minimize the need for expensive copies, this specification defines a
|
2604 | 2604 | scheme for reference counting (`clone()` and `close()`).
|
2605 | 2605 |
|
2606 |
| -NOTE: Authors are encourage to call `close()` immediately when frames are |
| 2606 | +NOTE: Authors are encouraged to call `close()` immediately when frames are |
2607 | 2607 | no longer needed.
|
2608 | 2608 |
|
2609 | 2609 | ### Reference Counting ### {#raw-media-memory-model-reference-counting}
|
|
2967 | 2967 | </xmp>
|
2968 | 2968 |
|
2969 | 2969 | : <dfn dict-member for=AudioDataCopyToOptions>planeIndex</dfn>
|
2970 |
| -:: The index identifying the plane to copy from. |
| 2970 | +:: The index identifies the plane to copy from. |
2971 | 2971 |
|
2972 | 2972 | : <dfn dict-member for=AudioDataCopyToOptions>frameOffset</dfn>
|
2973 | 2973 | :: An offset into the source plane data indicating which [=frame=] to begin
|
|
3005 | 3005 | signal at a particular point in time in a particular channel.
|
3006 | 3006 |
|
3007 | 3007 | A <dfn>frame</dfn> or (sample-frame) refers to a set of values of all channels
|
3008 |
| -of a multi-channel signal, that happen at the exact same time. |
| 3008 | +of a multi-channel signal, that happened at the exact same time. |
3009 | 3009 |
|
3010 |
| -NOTE: Consequently if an audio signal is mono (has only one channel), a frame |
3011 |
| -and a sample refer to the same thing. |
| 3010 | +NOTE: Consequently, if an audio signal is mono (has only one channel), a frame |
| 3011 | +or a sample refers to the same thing. |
3012 | 3012 |
|
3013 | 3013 | All audio [=samples=] in this specification are using linear pulse-code
|
3014 | 3014 | modulation (Linear PCM): quantization levels are uniform between values.
|
|
0 commit comments