JOTPOT Sound is very simple and easy to use. Simply add the JOTPOTSound.js file in to your HTML page & it is ready to go.
It supports MP3, Wav & Ogg files.
JOTPOTSound.play(<sound file to play>,<weather or not to loop>,<volume of audio>,<location in track to play from>) / jps.play(<sound file to play>,<weather or not to loop>,<volume of audio>,<location in track to play from>) | Plays a audio file (after being played onces it stays loaded incase played again) |
JOTPOTSound.pause(<sound file to pause>) / jps.pause(<sound file to pause>) | Plays a audio file (after being played onces it stays loaded in case played again) |
JOTPOTSound.pauseAll() / jps.pauseAll() | Pauses all sounds being played |
JOTPOTSound.soundsList / jps.soundsList | A variable containing an array of all loaded/playing sounds. |