hercules Posted March 19, 2014 Share Posted March 19, 2014 Hello everyone! I wonder if someone is facing this problem except me: IE has a (hardware dependent) limit of sound files that can be loaded via HTML5 Audio.load method. For me, it's exactly 41 sound file. When reaching this limit, IE fails to load sound with onerrror event firing on Audio element (I'm not making a testcase, hoping that it's a well-known bug, so many years it's there). So, what can be done with this? Sound sprites? Tried that one, every browser except IE is OK playing sound sprites, but in IE there are some problems (as always). What else? Thank you! Quote Link to comment Share on other sites More sharing options...
Gio Posted April 20, 2014 Share Posted April 20, 2014 Are you sure this is actually related to audio, and it isn't simply some kind of memory limit that you would hit when loading lots of images too? 41 sounds may end up using a lot of memory. I've found that if you recycle your Audio objects, that helps with memory usage (the old file that the Audio object was using gets unloaded shortly after the new one is loaded). Whereas relying on garbage collection to happen for unused and unreferenced Audio objects just doesn't work in some browsers. 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.