Jump to content
  • Advertisement
Sign in to follow this  
ID Merlin

[web] Browser-based game sound effects

This topic is 3911 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

There seem to be 3 options for a browser-based game to add sound: 1. IE only javascript using BGSOUND tag. 2. Flash 3. Java Is there any way to add cross-browser sound support without the use of Flash or Java? Or, is there a simple way to harness Flash for sound effects? There is a library out there that is about 1 Meg, and does everything for playing MP3s. I just want a few sound effects. Any ideas?

Share this post


Link to post
Share on other sites
Advertisement
I think you can just embed a WAV file or whatever, then access it via javascript. Just use document.getElementById("sound").play(), or something similar.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!