|
|
|
|
|
by _jal
3206 days ago
|
|
> Fetching and playing the various audio formats is a bit outside the purview of Web Audio Just looking at that clause makes me think perhaps the Web Audio API should have been called something else. Can you imagine writing "fetching and displaying various image formats is a bit outside the purview of HTML"? (I realize that's a bit apples 'n oranges.) |
|
If you want to just show an image, you use an <img> tag, or just play an audio file you use <audio>. Canvas and the Web Audio APIs are for pages that want to make or mix their own images/audio. Though to be fair, html/javascript do make it easy to load image data from an image tag directly into a canvas; maybe there's a missing parallel for audio.