Multiple AUDIO elements require one request per element unless they refer to the same stream or they use the data URL scheme, or the whole page is packaged as multipart/mixed, which would indeed be nice for such sets of small resources if only user agents supported it. Chris
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nils Dagsson Moskopp Sent: Wednesday, October 29, 2008 7:25 PM To: whatwg Subject: Re: [whatwg] video tag : loop for ever Am Mittwoch, den 29.10.2008, 11:16 -0700 schrieb Jonas Sicking: > Maciej (and I think others) have suggested that it would be useful if it > was possible to allow <audio> to be used such that a single file can be > downloaded that contains multiple sound effects, and then use javascript > to play different sound effects contained in that file at various times. > > For example someone creating a shoot-em-up game might create a file that > contains the sound for "shoot weapon", "enemy exploding", "player > dying", and "player finishes level". It can then when appropriate use > javascript to play any one of these sound effects. Remind me again what is wrong with multiple <audio> elements ? Cheers, -- Nils Dagsson Moskopp <http://dieweltistgarnichtso.net>
