--- 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" }
"speakers"
or "discrete"
. (See {{domxref("AudioNode.channelCountMode")}} for more information including default values.)Specification | Status | Comment |
---|---|---|
{{SpecName('Web Audio API','#audionodeoptions','AudioNodeOptions')}} | {{Spec2('Web Audio API')}} | Initial definition. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatChrome(55.0)}} | {{CompatGeckoDesktop(53)}} | {{CompatUnknown}} | {{CompatOpera(42)}} | {{CompatUnknown}} |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | {{CompatNo}} | {{CompatChrome(55.0)}} | {{CompatGeckoMobile(53)}} | {{CompatUnknown}} | {{CompatOperaMobile(42)}} | {{CompatUnknown}} | {{CompatChrome(55.0)}} |