Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This is a javascript... API for using the new Web Audio API which is coming out for FireFox and currently exists in Chrome.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
demo
.gitignore
.project
README
webAudioApiForDesigners.js

README

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/

Something went wrong with that request. Please try again.