0.0.10 • Published 6 years ago

audiochnl v0.0.10

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

AudioChnl

One Audio object, multiple effects. Easy.

What is an AudioChnl?

It's an extension of the chnl module: This module is made for playing, pausing, stopping and manipulating Audio-objects.

If you are not familiar with the chnl module, just have a look at it.

Usage

Creating an AudioChnl

The constructor requires 2 arguments: 1. Your AudioContext 2. Your Audio-object

const audioCtx = new AudioContext();
const audio = new Audio('song.mp3');
const audioChnl = new AudioChnl(audioCtx, audioObj);

Methods

.start()
.stop()
.pause()

Example

const audioCtx = new AudioContext();
const audio = new Audio('song.mp3');
const audioChnl = new AudioChnl(audioCtx, audioObj);
audioChnl.start();
0.0.10

6 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago