From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/audionodeoptions/index.html | 101 ++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 files/zh-cn/web/api/audionodeoptions/index.html (limited to 'files/zh-cn/web/api/audionodeoptions/index.html') diff --git a/files/zh-cn/web/api/audionodeoptions/index.html b/files/zh-cn/web/api/audionodeoptions/index.html new file mode 100644 index 0000000000..5587111d47 --- /dev/null +++ b/files/zh-cn/web/api/audionodeoptions/index.html @@ -0,0 +1,101 @@ +--- +title: AudioNodeOptions +slug: Web/API/AudioNodeOptions +translation_of: Web/API/AudioNodeOptions +--- +

{{APIRef("'Web Audio API'")}}

+ +

Web Audio API 的 AudioNodeOptions 字典指定了创建新 {{domxref("AudioNode")}} 对象时可使用的选项.

+ +

AudioNodeOptions 继承自不同类型的音频节点构造函数的选项对象. 例如 {{domxref("AnalyserNode.AnalyserNode")}} 或 {{domxref("GainNode.GainNode")}}.

+ +

语法

+ +
var audioNodeOptions = {
+  "channelCount" : 2,
+  "channelCountMode" : "max",
+  "channelInterpretation" : "discrete"
+}
+ +

参数

+ +
+
channelCount {{optional_inline}}
+
Represents an integer used to determine how many channels are used when up-mixing and down-mixing connections to any inputs to the node. (See {{domxref("AudioNode.channelCount")}} for more information.) Its usage and precise definition depend on the value of {{domxref("AudioNodeOptions.channelCountMode")}}.
+
channelCountMode {{optional_inline}}
+
Represents an enumerated value describing the way channels must be matched between the node's inputs and outputs. (See {{domxref("AudioNode.channelCountMode")}} for more information including default values.)
+
channelInterpretation {{optional_inline}}
+
Represents an enumerated value describing the meaning of the channels. This interpretation will define how audio up-mixing and down-mixing will happen.
+ The possible values are "speakers" or "discrete". (See {{domxref("AudioNode.channelCountMode")}} for more information including default values.)
+
+ +

规范

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Web Audio API','#audionodeoptions','AudioNodeOptions')}}{{Spec2('Web Audio API')}}Initial definition.
+ +

浏览器兼容性

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(55.0)}}{{CompatGeckoDesktop(53)}}{{CompatUnknown}}{{CompatOpera(42)}}{{CompatUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidAndroid WebviewFirefox Mobile (Gecko)IE MobileOpera MobileSafari MobileChrome for Android
Basic support{{CompatNo}}{{CompatChrome(55.0)}}{{CompatGeckoMobile(53)}}{{CompatUnknown}}{{CompatOperaMobile(42)}}{{CompatUnknown}}{{CompatChrome(55.0)}}
+
-- cgit v1.2.3-54-g00ecf