Socket
Socket
Sign inDemoInstall

audio-context-mock

Package Overview
Dependencies
18
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    audio-context-mock

Mock of webAPI AudioContext for Node


Version published
Weekly downloads
93
increased by3.33%
Maintainers
1
Install size
1.50 MB
Created
Weekly downloads
 

Readme

Source

    

This project is based on web-audio-engine, which is now archived. It aims to be able to use the APIS web methods in Node and add mocks of the missing functions of the initial project.

Install

npm install audio-context-mock

Usage

const AudioContext = require("audio-context-mock");
const context = new AudioContext();

API

MethodDocumentation LinkAvailable
createMediaElementSource()https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaElementSource
createMediaStreamDestination()https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamDestination
createMediaStreamSource()https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamSource

createMediaElementSource

const audioSourceNode = context.createMediaElementSource();

createMediaStreamDestination

const destination = audioCtx.createMediaStreamDestination();

createMediaStreamSource

const audioSourceNode = context.createMediaStreamSource();

Contributing

Contributions welcome !

Keywords

FAQs

Last updated on 10 Sep 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc