https://github.com/sean-codes/cs-audio
Experimenting with cross platform audio solution. Targeting on modern browsers
https://github.com/sean-codes/cs-audio
Last synced: about 1 month ago
JSON representation
Experimenting with cross platform audio solution. Targeting on modern browsers
- Host: GitHub
- URL: https://github.com/sean-codes/cs-audio
- Owner: sean-codes
- Created: 2017-01-14T18:05:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-16T07:01:59.000Z (over 9 years ago)
- Last Synced: 2025-01-16T09:07:18.882Z (over 1 year ago)
- Language: JavaScript
- Size: 5.52 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cs-audio
Experimenting with cross platform audio solution. Targeting on modern browsers
>Note: This is template project I'm using to get audio into CS-Engine and not meant to stand alone
#Usage
>Pre code thoughts
var audio = new csAudio();
//Loading Audio
audio.load('myAudio', 'wav, ogg');
//Hold audio for using
var mySound = audio.use('myAudio');
//Playing
mySound.play();
//Stopping
mySound.stop();
//Reset to beginning also called once audio stops
mysound.reset();
//Change moment in time
mysound.set(second)