-
Notifications
You must be signed in to change notification settings - Fork 4
TheNotary/webAudioApiForDesigners
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Deprecation Notice: Howler.JS now exists. My own small and mostly simple repo is still cool to casually look at to see the WebAudioAPI in action, but Howler.JS is more actively developed and probably tested more robustly than this project ever will be (they have 134 forks for god's sake!). I happen to like the syntax of Howler.JS too as that it's somewhat similar, yet even better than what I came up with originally. Check it out at https://github.com/goldfire/howler.js Checkout http://css-tricks.com/web-audio-api-sound-on-hover/ for a full writeup on this library and the WebAudioAPI. A web Audio API to make adding sounds to your web app a no brainer, yet take full advantage of Chrome's new web audio API. Usage: 1) Add this script to your project html code. <script src="/javascripts/webAudioApiForDesigners.js"></script> 2) Play a sound using javascript. // 1 var context = initializeNewWebAudioContext(); // 2 context.loadSound('audio/beep.ogg', 'beep'); $("#nav-one a") .mouseenter(function() { // 3 context.playSound('beep'); }); For more details, checkout this link to the css-tricks.com http://css-tricks.com/web-audio-api-sound-on-hover/
About
This is a javascript... API for using the new Web Audio API which is coming out for FireFox and currently exists in Chrome.
Resources
Stars
Watchers
Forks
Packages 0
No packages published