HTML and CSS Reference
In-Depth Information
<p>This demo plays a one second tone when you click the button
<button onclick="playTone();">Play</button>
Though the result is simple, consider the capability this API provides: the ability to not only
play audio files without having to use a plug-in, but also to generate audio. Game developers
in particular should be interested in this capability.
As I mentioned earlier, there is no specification work underway for the Audio Data API, most
likely because the work on the concept is still very new. Apple and Google are also exploring
an audio data API via work in WebKit, called the Web Audio API. Google did propose the
formation of a W3C Audio Group, but none has been created at this time.
Do check out the APIs and the many excellent examples, but remain cautious about using the
APIs in your production efforts.
The Audio Data API MozillaWiki entry can be found at .
Mozilla has also provided an introduction to the API at
cing_the_Audio_API_Extension . The BBC has also provided an excellent tutorial/introduction to
the Audio Data API at
data-api.shtml . Access more information on the Web Audio API at
svn/trunk/samples/audio/index.html .
Search WWH ::

Custom Search