EasyAudioEffects.js
Easily set up sound effects to HTML elements
Download on GitHub
Latest Version : v1.0.0
with jQuery - v1.7.0 or Later.
Easily set up sound effects to HTML elements
Download on GitHub
Latest Version : v1.0.0
with jQuery - v1.7.0 or Later.
easyAudioEffects.js easyAudioEffects.js is jquery plug-in. This can be given a very easy sound effects for any of the elements on your WEB site.
This plug-in is the reaction slightly in Safari is slow. (Jun , 2015)
//v1.7.0〜
jQuery v1.7.0 or later.
$('.selector').easyAudioEffects({
ogg : "/path/to/sound.ogg",
mp3 : "/path/to/sound.mp3"
});
| Parameter | Type | Default value | Description |
|---|---|---|---|
| ogg | string | none | Specify the file path Required |
| mp3 | string | none | Specify the file path Required |
| eventType | string | "hover" | Could be "hover" or "click" |
| playType | string | "oneShotPolyphonic" | Could be "oneShotPolyphonic" , "oneShotMonophonic" , "gate" or "loop" |
HOVER!
CLICK!
$('.selector').easyAudioEffects({
ogg : "./path/to/sound.ogg",
mp3 : "./path/to/sound.mp3",
eventType : "hover" // or "click"
});
TRACE!
BARRAGE!
$('.selector').easyAudioEffects({
ogg : "./path/to/sound.ogg",
mp3 : "./path/to/sound.mp3",
eventType : "hover", // or "click"
playType : "oneShotPolyphonic"
});
TRACE!
BARRAGE!
$('.selector').easyAudioEffects({
ogg : "./path/to/sound.ogg",
mp3 : "./path/to/sound.mp3",
eventType : "hover", // or "click"
playType : "oneShotMonophonic"
});
HOVER!
CLICK!
$('.selector').easyAudioEffects({
ogg : "./path/to/sound.ogg",
mp3 : "./path/to/sound.mp3",
eventType : "hover", // or "click"
playType : "gate"
});
HOVER!
CLICK!
$('.selector').easyAudioEffects({
ogg : "./path/to/sound.ogg",
mp3 : "./path/to/sound.mp3",
eventType : "hover", // or "click"
playType : "loop"
});