FarmHeart

← Back to Blog

Sound Design for Browser Games: Audio That Doesn't Annoy Players

October 9, 2026 · FarmHeart

Bad game audio is worse than no audio at all. Auto-playing music at full volume is the fastest way to lose a player. Good sound design is invisible — you only notice when it’s missing.

The Web Audio API

Forget the <audio> element for games. The Web Audio API gives you:

Essential Sound Categories

Volume Management Rules

  1. Never auto-play audio. Wait for the first user interaction (click/tap), then start. Browsers block auto-play anyway
  2. Default volume at 50%, not 100%. Players can turn it up; they shouldn’t have to scramble to turn it down
  3. Separate music and SFX sliders. Many players want sound effects but not music
  4. Remember volume settings in localStorage between sessions
  5. Mute when the tab is hidden. Use the Page Visibility API to pause audio when players switch tabs

Where to Get Free Game Audio

Test on phone speakers. Your carefully crafted bass-heavy explosion sounds great on headphones but is inaudible on phone speakers. Test on the devices your players actually use.