nddrylliog/jsmad — Issue #26: Avoiding AudioData API
Author: gliese1337
Created: 2011-10-19 04:40:51+00:00
State: open

I just came across an ingenious method for playing JS-synthesized sound samples without requiring the AudioData API:

new Audio( 'data:audio/wav;base64,'+/*sound data goes here*/ ).play();

(Found at http://www.p01.org/releases/140bytes_music_softSynth/ .)

Making use of that should provide support for browsers other than Chrome and Firefox- Opera, Safari, etc.

I'll prob'ly work on an AudioData polyfill based on that soon as I get some free time.