Joe Kopena Posted September 5, 2015 Share Posted September 5, 2015 I've started using Howler.js for audio in some simple games. It takes care of loading sounds, but doesn't seem to have any preloading mechanism to fetch files before a Howler (sound clip) is created, i.e., in-game. Does anybody have any thoughts on how best to preload for it so sounds are ready to go as soon as the action starts? At the moment I'm leaning toward having Howler figure out which codecs to use, and then downloading the appropriate files so they're at least in the browser cache. Possibly I'll rework Howler a bit to use a cache internally. Is anyone aware of such a thing already? Thx Quote Link to comment Share on other sites More sharing options...
BobF Posted September 8, 2015 Share Posted September 8, 2015 You can create the Howler clip as soon as Howler loads and then play it later. Or, you can probably just use the audio tag to preload the files to the cache. digitalmouse 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.