Type in the search box above for quick search in Pluingtutor.
BECOME A CONTRIBUTOR
Interested in getting your articles published with us ?
Melodics

Using Web Audio API

At first you have to create the a single instance of AudioContext Which can support multiple sound inputs.

That means a single AudioContext instance can manage single or multiple Sources to a single Destination.

The connection between Source and Destination doesn’t need to be direct, it can go through any number of AudioNodes like audio filter, effects, audio gain etc. which act as audio effects for the audio signal.

Web audio API
modular routing

or

modular routing2

For using web audio API you have to create instance fast.

Example :

Create Instance

window.AudioContext = window.AudioContext||window.webkitAudioContext;

context = new AudioContext();

Load Sound

var source = context.createBufferSource();
source.buffer = Buffer;
source.connect(context.destination);
source.start(0);

The API supports loading audio file data in multiple formats, such as WAV, MP3, AAC, OGG

Comments are closed.

  • Post Categories
  • Search Topic
    Tags: ,
    Melodics

    Select Option