Jump to content

Preloading Sound Files To Use With Howler.JS?


Joe Kopena
 Share

Recommended Posts

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

 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...