Skip to content

CharlesRA/audio-context-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Β Β Β Β 

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

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 βœ…

createMediaElementSource

const audioSourceNode = context.createMediaElementSource();

createMediaStreamDestination

const destination = audioCtx.createMediaStreamDestination();

createMediaStreamSource

const audioSourceNode = context.createMediaStreamSource();

Contributing

Contributions welcome !

Releases

No releases published

Packages

No packages published