diff --git a/files/en-us/web/api/audionode/channelinterpretation/index.html b/files/en-us/web/api/audionode/channelinterpretation/index.html index 199cd3a42fb4295..bb31bcde5e921f6 100644 --- a/files/en-us/web/api/audionode/channelinterpretation/index.html +++ b/files/en-us/web/api/audionode/channelinterpretation/index.html @@ -8,25 +8,36 @@ - Reference - Web Audio API - channelInterpretation +browser-compat: api.AudioNode.channelInterpretation ---
{{ APIRef("Web Audio API") }}
-The channelInterpretation
property of the {{ domxref("AudioNode") }} interface represents an enumerated value describing the meaning of the channels. This interpretation will define how audio up-mixing and down-mixing will happen.
The channelInterpretation
property of the {{domxref("AudioNode")}} interface represents an enumerated value describing how input channels are mapped to output channels when the number of inputs/outputs is different. For example, this setting defines how a mono input will be up-mixed to a stereo or 5.1 channel output, or how a quad channel input will be down-mixed to a stereo or mono output.
The property has two options: speakers
and discrete
. These are documented in Basic concepts behind Web Audio API > up-mixing and down-mixing.
{{page("/en-US/docs/Web/API/Web_Audio_API/Basic_concepts_behind_Web_Audio_API","Up-mixing and down-mixing")}}
var oscillator = audioCtx.createOscillator(); +var oscillator = audioCtx.createOscillator(); oscillator.channelInterpretation = 'discrete';Value
-An enumerated value representing a channelInterpretation.
+The values are documented in Basic concepts behind Web Audio API > up-mixing and down-mixing.
+ +In summary:
+
speakers
discrete
var AudioContext = window.AudioContext || window.webkitAudioContext; +var AudioContext = window.AudioContext || window.webkitAudioContext; var audioCtx = new AudioContext(); @@ -41,24 +52,11 @@Example
Specifications
-
Specification | -Status | -Comment | -
---|---|---|
{{SpecName('Web Audio API', '#dom-audionode-channelinterpretation', 'channelInterpretation')}} | -{{Spec2('Web Audio API')}} | -- |
{{Compat("api.AudioNode.channelInterpretation")}}
+{{Compat}}