jsantell / dancer.js

high-level audio API, designed to make sweet visualizations
jsantell.github.com/dancer.js
MIT License
2.11k stars 211 forks source link

Support multiple audio types #7

Closed jsantell closed 12 years ago

jsantell commented 12 years ago

Allow a string of a path to an audio source to be passed into Dancer constructor, as well as ordered audio types to check support

// Chrome would use /path/to/audio.mp3 while Firefox
// would use the first type that it supports and would load /path/to/audio.ogg
var dancer = new Dancer( "/path/to/audio", [ 'mp3', 'ogg' ] );