Preloading Sound Files

JavaScript FAQ | JavaScript Sound FAQ  

Question: How do I preload a sound file?

Answer: In most browsers, you can use the following

EMBED
tag to preload a sound file
mySound.mid
:
<EMBED NAME="mySound" SRC="mySound.mid" 
LOOP=FALSE AUTOSTART=FALSE HIDDEN=TRUE MASTERSOUND>
Then you can play the sound using the techniques described in the Playing Sound section.

BackBack

Copyright © 1996-2018, JavascriptFAQ.net.