My plan is to build a grid that can play many sounds at once using html5's audio tag.
As a result, I need to call many <audio> tags at once, which I organize using unique tag id's
Are there any known or obvious limitations to calling mutliple sound files at once? Does anyone shudder if I say I want to run 10 or 20 simultaneous sounds using html5? How about even more?
Second, calling so many sound files is quite messy if I include them all at the top of my main html file.
Can I place these tags in an external file much like Css.css or javascript.js?
Thanks!
<body>
<audio loop id="sound1"> <source src="sound1.ogg"/> <source src="sound1.mp3"/> </audio>
<audio loop id="sound2"> <source src="sound2.ogg"/> <source src="sound2.mp3"/> </audio>
<audio loop id="sound3"> <source src="sound3.ogg"/> <source src="sound3.mp3"/> </audio>
<audio loop id="sound4"> <source src="sound4.ogg"/> <source src="sound4.mp3"/> </audio>
....etc....
</body>