New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

constant-source-node

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

constant-source-node

ConstantSourceNode for legacy Web Audio API

latest
Source
npmnpm
Version
1.1.1
Version published
Maintainers
1
Created
Source

ConstantSourceNode

Build Status NPM Version License

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.

require("ConstantSourceNode").polyfill();
<script src="/path/to/constant-source-node.js"></script>
<script>ConstantSourceNode.polyfill();</script>

Then, you can use createConstantSource() method at AudioContext.

var constantSource = audioContext.createConstantSource();

constantSource.offset.value = 10;

Demo

https://mohayonao.github.io/constant-source-node/

API

ConstantSourceNode

  • constructor(audioContext: AudioContext, opts={})

Class Methods

  • polyfill(): void
    • install createConstantSource() method to BaseAudioContext.prototype if needed.
  • install(): void
    • install createConstantSource() method to BaseAudioContext.prototype force

Instance Attributes

  • offset: AudioParam readonly

AudioGraph

constant-source-node

License

MIT

Keywords

polyfill

FAQs

Package last updated on 15 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts