Releases: EvandroLG/ts-audio
Releases · EvandroLG/ts-audio
ts-audio v0.4.5
ts-audio
is an agnostic and easy-to-use library to work with the AudioContext
API.
What's new?
- Added logic to play the audio multiple times using the same object
- Fixed bug that played the playlist always in loop
- Refactored code
ts-audio v0.4.2
ts-audio
is an agnostic and easy-to-use library to work with the AudioContext
API.
What's new?
- Extended API from
AudioPlaylist
, adding:loop
parametervolume
andloop
properties
import { AudioPlaylist } from 'ts-audio';
const playlist = AudioPlaylist({
files: ['./songOne.mp3', './songTwo.mp3', './songThree.mp3'],
volume: 0.7,
loop: true
});
playlist.play();
playlist.volume; // 0.7
playlist.volume = 05
ts-audio v0.4.0
ts-audio
is an agnostic and easy-to-use library to work with the AudioContext
API.
What's new?
- Created
AudioPlaylist
component. To see more details, check our documentation.
import { AudioPlaylist } from 'ts-audio';
const playlist = AudioPlaylist({
files: ['./songOne.mp3', './songTwo.mp3', './songThree.mp3'],
volume: 0.7,
});
playlist.play();
- Updated examples, adding a complete example of how to use
AudioPlaylist
- Created
end
event toAudio
component. For more details, see our documentation.