BaseAudioContext.createConstantSource()
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
createConstantSource()
是 BaseAudioContext
接口的一个方法,用于生成一个 ConstantSourceNode
对象,该对象是一个输出单信道(one-channel)音频信号的音频源,这些音频信号都拥有一个恒定的样本值。
Syntax
var constantSourceNode = AudioContext.createConstantSource()
Parameters
None.
Returns
A ConstantSourceNode
instance.
Specifications
Specification |
---|
Web Audio API # dom-baseaudiocontext-createconstantsource |
Browser Compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
createConstantSource |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.