AudioNodeOptions - Web API 接口参考 编辑
Web Audio API 的 AudioNodeOptions
字典指定了创建新 AudioNode
对象时可使用的选项.
AudioNodeOptions
继承自不同类型的音频节点构造函数的选项对象. 例如 AnalyserNode.AnalyserNode
或 GainNode.GainNode
.
语法
var audioNodeOptions = { "channelCount" : 2, "channelCountMode" : "max", "channelInterpretation" : "discrete" }
参数
- channelCount 可选
- 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
AudioNode.channelCount
for more information.) Its usage and precise definition depend on the value ofAudioNodeOptions.channelCountMode
. - channelCountMode 可选
- Represents an enumerated value describing the way channels must be matched between the node's inputs and outputs. (See
AudioNode.channelCountMode
for more information including default values.) - channelInterpretation 可选
- 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"
. (SeeAudioNode.channelCountMode
for more information including default values.)
规范
Specification | Status | Comment |
---|---|---|
Web Audio API AudioNodeOptions | Working Draft | Initial definition. |
浏览器兼容性
We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 55.0 | 53 (53) | ? | 42 | ? |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|
Basic support | 未实现 | 55.0 | 53.0 (53) | ? | 42 | ? | 55.0 |
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论