Skip to content

Commit

Permalink
AudioNode.channelCountMode - table as definition list in value (mdn#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishwillee committed Dec 12, 2022
1 parent 6fbc585 commit e102a33
Showing 1 changed file with 17 additions and 57 deletions.
74 changes: 17 additions & 57 deletions files/en-us/web/api/audionode/channelcountmode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,65 +16,25 @@ browser-compat: api.AudioNode.channelCountMode

The `channelCountMode` property of the {{ domxref("AudioNode") }} interface represents an enumerated value describing the way channels must be matched between the node's inputs and outputs.

The possible values of `channelCountMode` and their meanings are:

<table class="no-markdown">
<thead>
<tr>
<th scope="col">Value</th>
<th scope="col">Description</th>
<th scope="col">
The following <code>AudioNode</code> children default to this value
</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>max</code></td>
<td>
The number of channels is equal to the maximum number of channels of all
connections. In this case, <code>channelCount</code> is ignored and only
up-mixing happens.
</td>
<td>
{{domxref("GainNode")}}, {{domxref("DelayNode")}},
{{domxref("ScriptProcessorNode")}},
{{domxref("BiquadFilterNode")}},
{{domxref("WaveShaperNode")}}
</td>
</tr>
<tr>
<td><code>clamped-max</code></td>
<td>
The number of channels is equal to the maximum number of channels of all
connections, <em>clamped</em> to the value of <code>channelCount</code>.
</td>
<td>
{{domxref("PannerNode")}}, {{domxref("ConvolverNode")}},
{{domxref("DynamicsCompressorNode")}}
</td>
</tr>
<tr>
<td><code>explicit</code></td>
<td>
The number of channels is defined by the value of
<code>channelCount</code>.
</td>
<td>
{{domxref("AudioDestinationNode")}},
{{domxref("AnalyserNode")}},
{{domxref("ChannelSplitterNode")}},
{{domxref("ChannelMergerNode")}}
</td>
</tr>
</tbody>
</table>

> **Note:** In older versions of the spec, the default for a {{domxref("ChannelSplitterNode")}} was max.
## Value

An enumerated value representing a [channelCountMode](https://webaudio.github.io/web-audio-api/#idl-def-ChannelCountMode).
The possible values of the `channelCountMode` enumerated value, and their meanings are:

- `max`
- : The number of channels is equal to the maximum number of channels of all connections.
In this case, `channelCount` is ignored and only up-mixing happens.

The following AudioNode children default to this value: {{domxref("GainNode")}}, {{domxref("DelayNode")}}, {{domxref("ScriptProcessorNode")}}, {{domxref("BiquadFilterNode")}}, {{domxref("WaveShaperNode")}}.
- `clamped-max`
- : The number of channels is equal to the maximum number of channels of all connections, clamped to the value of `channelCount`.

The following AudioNode children default to this value: {{domxref("PannerNode")}}, {{domxref("ConvolverNode")}}, {{domxref("DynamicsCompressorNode")}}
- `explicit`
- : The number of channels is defined by the value of `channelCount`.

The following AudioNode children default to this value: {{domxref("AudioDestinationNode")}}, {{domxref("AnalyserNode")}}, {{domxref("ChannelSplitterNode")}}, {{domxref("ChannelMergerNode")}}

> **Note:** In older versions of the spec, the default for a {{domxref("ChannelSplitterNode")}} was `max`.
## Examples

Expand Down

0 comments on commit e102a33

Please sign in to comment.