ConstantSourceNode
ConstantSourceNode for legacy Web Audio API
https://webaudio.github.io/web-audio-api/#ConstantSourceNode
Installation
npm install constant-source-node
downloads:
Quick Example
At first, call polyfill()
method.
;
Then, you can use createConstantSource()
method at AudioContext.
var constantSource = audioContext; constantSourceoffsetvalue = 10;
Demo
https://mohayonao.github.io/constant-source-node/
API
ConstantSourceNode
constructor(audioContext: AudioContext, opts={})
Class Methods
polyfill(): void
- install
createConstantSource()
method toBaseAudioContext.prototype
if needed.
- install
install(): void
- install
createConstantSource()
method toBaseAudioContext.prototype
force
- install
Instance Attributes
offset: AudioParam
readonly
AudioGraph
License
MIT