GithubHelp home page GithubHelp logo

web-audio-test-api-2's Introduction

web-audio-test-api

Build Status License

Web Audio API for CI

Features

  • ✅ change api specification
  • ✅ type check assertion
  • ✅ basic validation
  • 👷 test audio graph
  • 👷 test internal parameters
  • 👷 provide best practice (strictly validation)

Installation

$ npm install web-audio-test-api@beta

API

  • createAPI(config: string|object): api
    • spec:string name of specification (e.g. "safari")
    • spec:object specification object
  • api.install([target: object]): api
    • target: object target object to install api - default: global
  • api.uninstall([target: object]): api
    • target: object target object to uninstall api - default: global
  • api.get(apiPath: string): any
    • apiPath: string path of api configuration (e. g. "/AudioNode/connect/selective")
  • api.set(apiPath: string, value: any): any
    • apiPath: string path of api configuration
    • value: any value to set

Quick Example

require("web-audio-test-api").createAPI("chrome:55").install();

const audioContext = new AudioContext();
const oscillator = new OscillatorNode(audioContext, { frequency: 880 });
const gain = new GainNode(audioContext, { gain: 0.5 });

oscillator.connect(gain).connect(audioContext.destination);
require("web-audio-test-api").createAPI("safari:10").install();

const audioContext = new webkitAudioContext();
const oscillator = audioContext.createOscillator();
const gain = audioContext.createGain();

oscillator.frequency.value = 880;
oscillator.connect(gain); // safari 10 returns void, so cannot chain the next.

gain.gain.value = 0.5;
gain.connect(audioContext.destination);

Support specifications

name released add remove move change
chrome:55 2016-12-01 - - - -
chrome:56 2017-01-25 3 6 0 0
firefox:50 2016-11-15 - - - -
firefox:51 2017-01-24 0 0 0 0
safari:9 2015-09-30 - - - -
safari:10 2016-09-20 1 0 3 8
edge:38 2016-08-02 - - - -
spec:201512 2015-12-08 13 3 20 10
spec:draft - 29 10 5 19

License

MIT

web-audio-test-api-2's People

Contributors

jackca avatar mohayonao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.