Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

still has issues. Flash works but... requires flash (an issue for iOS). What do you use in Javascript for audio?

share|improve this question
SoundManager 2 is BSD licensed. How well has it worked for you, (or did you go with something else)? – Vincent Scheib Jan 29 '11 at 20:40
Accept previous answers. – The Communist Duck Jun 29 '11 at 8:52

I tried HTML5 audio on my first game but I could not get it to work perfectly (lag for the first time the sample is played etc).

SoundManager2 looks ok and I tried it a bit in a demo. For the next game I will use it as it has functionality to fall back to HTML5 audio in case Flash is not available.

share|improve this answer
Was the audio clip still loading when you first tried playing it? – espais Feb 9 '11 at 20:41
I used preload="auto" and actually it worked better on FF than on Chrome. – Petteri Hietavirta Feb 9 '11 at 22:12

From what I gather, HTML 5's audio potential has a long long way to go. Firefox 4 Beta apparently has a cool audio API but it's going to be a little while before we see the major browsers provdie comprehensive support for the W3C Web Audio API Standard

share|improve this answer

As of recent Google Chrome updates (13.0.782.32) the HTML5 audio tag has been working perfectly for me.

share|improve this answer

Both Webkit (specifically chrome) and Firefox have come a long way since this question was asked:

Google's recent recreation of the moog synth using webkit's audio context API made me decide to finally try to build something for webkit. They used a flash fallback for other browsers, and I may do that or I may just wait until the browsers standardize an API for audio and then adapt to whatever that is. The real question is: how soon does this need to be ready? For me, it's experimental and for fun and resume building, so I don't care if I don't have a shippable product for a year or so. But if you need it to work on all browsers NOW, flash is the safest bet. See this article regarding the IE dev team and why they had to use flash audio for Cut the Rope:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.