Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioNode.ChannelInterpretation: remove page macro #5236

Merged
merged 1 commit into from
May 28, 2021

Conversation

hamishwillee
Copy link
Collaborator

Partial fix to #3196

AudioNode.ChannelInterpretation was pulling in the table of values for that method from https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Basic_concepts_behind_Web_Audio_API#up-mixing_and_down-mixing

Again, the values would be useful alongside this method. However not worth including. What I have done though is improved the description here/summary of what the values actually mean because without the table the description is insufficient.

I also took the time to link to BCD for the compatibility table and spec.

@hamishwillee hamishwillee requested a review from a team as a code owner May 24, 2021 04:43
@hamishwillee hamishwillee requested review from jpmedley and removed request for a team May 24, 2021 04:43
@@ -311,13 +311,13 @@ <h2 id="Visualizations">Visualizations</h2>

<dl>
<dt>{{domxref("AnalyserNode.getFloatFrequencyData()")}}</dt>
<dd>Copies the current frequency data into a {{domxref("Float32Array")}} array passed into it.</dd>
<dd>Copies the current frequency data into a {{jsxref("Float32Array")}} array passed into it.</dd>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI these are just macro flaw fixes

@github-actions
Copy link
Contributor

<dt><code>speakers</code></dt>
<dd>Use set of "standard" mappings for combinations of common speaker input and outputs setups (mono, stereo, quad, 5.1). For example, with this setting a mono channel input will output to both channels of a stereo output.</dd>
<dt><code>discrete</code></dt>
<dd>Input channels are mapped to output channels in order. If there are more inputs that outputs the additional inputs are dropped; if there are fewer then the unused outputs are silent.</dd>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what the spec says, but I am not clear what it actually means. So for example, Imagine I have a stereo input and a 5.1 output. I understand that two of the inputs will be mapped to two of the outputs and the rest will be silent.
But, which two outputs? How are outputs and inputs numbered?

@sideshowbarker sideshowbarker merged commit d9c4fbb into mdn:main May 28, 2021
@hamishwillee hamishwillee deleted the pagemacro_audionode_ch branch May 28, 2021 05:42
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants