Web Audio Library
WaudBase64Pack
to create and decode sounds sequentially.getVolume
and setVolume
methodsplaybackRate
playbackRate
to global default optionsBase64Pack
playbackRate
method globally as well as for each audio instance.// To set playbackRate globally on all sounds
Waud.playbackRate(1.5);
// To set playbackRate on an individual sound
snd.playbackRate(1.5);
If no parameter is passed the method will return the current playback rate.
autoStop
method.snd.autoStop(false);
By default, autostop
is set to true
which means the sound will always stop and play from the start whenever play
is called.
If autostop
is set to false
sound will continue playing and new instance will start playing on top of that.
duration
property and added getDuration()
method