4 ms·
I wonder if sound could be added via the HTML5 <audio> support? You can actually use the data uri scheme for <audio> src. So if you generate WAV data on the fl
by audionerd 17y ago
I wonder if sound could be added via the HTML5 <audio> support?
You can actually use the data uri scheme for <audio> src. So if you generate WAV data on the fly via JavaScript, and encode it as Base64, you can play it immediately.
Here's an example of on-the-fly WAV generation w/ <embed>, but I just tried it in Firefox with <audio> and that works as well:
http://sk89q.therisenrealm.com/2008/11/dynamically-generating-a-wav-in-javascript/ http://sk89q.therisenrealm.com/2008/11/dynamically-generatin...