audioPromise
============

A simple promise wrapper for audio elements.


Usage
============
```javascript
var promise = $.audioPromise(new Audio('http://example.com/someAudioFile.mp3'));
promise.done(function(audio) {
  // the src has loaded and we can now manipulate currentTime without causing an exception
  audio.currentTime = 0;
  // the durration property now returns the correct value instead of NaN
  updateDomWithDurration(audio.durration);
});
```

audioPromise
============

A simple promise wrapper for audio elements.


Usage
============
Simple Use Case
---------------
```javascript
var promise = $.audioPromise(new Audio('http://example.com/someAudioFile.mp3'));
promise.done(function(audio) {
  // the src has loaded and we can now manipulate currentTime without causing an exception
  audio.currentTime = 0;
  // the durration property now returns the correct value instead of NaN
  updateDomWithDurration(audio.durration);
});
```

Run code after all the audio elements on a page have been loaded
---------------
```javascript
var $audioElements = $('audio');

var audioPromises = $.map($audioElements, $.audioPromise);

var allAudioElementsReadyPromise = $.when.apply(this, audioPromises);
```

Add another example to the readme
Add another example to the readme