Mock of webAPI AudioContext for Node
npm install audio-context-mockThis 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.
```
npm install audio-context-mock
`javascript`
const AudioContext = require("audio-context-mock");
const context = new AudioContext();
| Method | Documentation Link | Available |
| --------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | :-------: |
| 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 | ✅ |
---
`js`
const audioSourceNode = context.createMediaElementSource();
`js`
const destination = audioCtx.createMediaStreamDestination();
`js``
const audioSourceNode = context.createMediaStreamSource();
Contributions welcome !