AudioNodeOptions - Web APIs 编辑
The AudioNodeOptions
dictionary of the Web Audio API specifies options that can be used when creating new AudioNode
objects.
AudioNodeOptions
is inherited from by the option objects of the different types of audio node constructors. See for example AnalyserNode.AnalyserNode
or GainNode.GainNode
.
Syntax
var audioNodeOptions = { "channelCount" : 2, "channelCountMode" : "max", "channelInterpretation" : "discrete" }
Properties
channelCount
Optional- 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
Optional- 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
Optional- 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.)
Specifications
Specification | Status | Comment |
---|---|---|
Web Audio API The definition of 'AudioNodeOptions' in that specification. | Working Draft | Initial definition. |
Browser compatibility
BCD tables only load in the browser
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论