Lesson 8: Audio Design & Music Production

You have a playable build and a clear technical base. Next is giving your game a clear audio identity: sound effects that sell actions and feedback, and music that supports mood and pacing. This lesson walks you through planning, sourcing or creating, and implementing audio so your indie game feels finished without overspending.

What You'll Learn

By the end of this lesson you will be able to:

  • Plan an audio design that matches your scope and budget (SFX list, music cues, tech needs)
  • Source or create sound effects and music (royalty-free, licensed, or simple original work)
  • Implement audio in your engine so it triggers correctly and performs well
  • Balance levels and mix so nothing is missing or overpowering
  • Document your audio pipeline for consistency and future updates

Why This Matters

Audio is often left until the end, then rushed. That leads to generic or mismatched sounds, bloated file sizes, and last-minute licensing issues. A small amount of planning and a clear pipeline keep quality high and stress low. Good SFX and music make gameplay feel responsive and memorable; weak or missing audio makes even solid mechanics feel unfinished.


Step 1: Plan Your Audio Design

Before you buy or record anything, define what you need so you can scope time and cost.

Sound effects (SFX)

  • List every player action that should have a sound (jump, shoot, pick up, hit, die, menu click, etc.).
  • List world and systems (ambience, UI, win/lose, level start/end).
  • Mark priority: must-have for launch vs nice-to-have. Ship with must-haves; add the rest in patches if needed.

Music

  • Decide where music plays: menu, gameplay, boss, victory, defeat, optional “jukebox” or settings.
  • Decide style and mood (e.g. chill for menus, tense for combat) and approximate length (loops, intros, stingers).
  • Note if you need adaptive music (e.g. layers that change with health or intensity). That affects both composition and implementation.

Tech and format

  • Check your engine’s supported formats (e.g. WAV, OGG, MP3) and recommended settings (sample rate, compression).
  • Plan for platform limits (mobile memory, streaming, number of simultaneous voices) so you do not over-author assets.

Pro Tip: Put this in a simple spreadsheet or doc: column for “Event”, “Priority”, “Source” (create/license/free), “Status”. It becomes your audio task list and handoff doc for contractors or collaborators.

Common mistake: Adding music and SFX without a list. You end up with gaps (no sound for key actions) or duplicate work (several versions of the same type of sound).


Step 2: Source or Create Sound Effects

You do not need to record everything yourself. Choose a mix that fits your budget and skills.

Royalty-free libraries

  • Freesound.org – Huge variety; check license per clip (CC0, CC-BY, etc.) and attribute if required.
  • Unity Asset Store / Unreal Marketplace – Game-ready SFX packs; read the license for use in shipped games and other engines.
  • Epidemic Sound, Artlist, Soundstripe – Subscription libraries; confirm their license covers game use and storefronts.

Recording your own

  • Use a phone or USB mic in a quiet room; record multiple takes so you can pick the best.
  • Edit in Audacity (free): trim, normalize, remove DC offset. Export in the format your engine prefers (often OGG for size).
  • Keep raw and edited versions so you can tweak later.

Synthesis and procedural

  • For UI bleeps, hits, and abstract sounds, BFXR, Chipophone, or Audacity’s Generate can produce usable one-shots quickly.
  • Some engines support procedural or parameterized SFX; useful for variations (e.g. pitch/volume per hit) without many files.

Pro Tip: Name files clearly (e.g. jump_01.ogg, menu_click.ogg) and keep a master list. That makes implementation and handoff much easier.


Step 3: Source or Create Music

Same idea: match method to budget and scope.

Royalty-free and licensed music

  • Pixabay, Free Music Archive, OpenGameArt – Free tracks; always check license (e.g. CC-BY, no commercial, game use).
  • Premium libraries and composers – One-off or exclusive tracks; get a written license that explicitly allows use in your game, store pages, and trailers.

Simple original music

  • DAWs (e.g. LMMS, Reaper, GarageBand): use loops and simple arrangements to build short loops (30–90 seconds) and stingers.
  • AI-assisted tools (e.g. Suno, AIVA) – Can draft ideas; verify their terms allow commercial game use and that you have rights to the output.

Adaptive and layered music

  • If you want music that changes with gameplay, plan stems (e.g. percussion, bass, melody) or intensity layers so your engine can crossfade or enable/disable layers. This is more work but adds a lot of polish.

Pro Tip: For indie scope, a few strong loops (menu, gameplay, boss, end) plus clear stingers (win/lose) are enough. Avoid committing to a full OST until the game is locked.


Step 4: Implement Audio in Your Engine

Get sounds and music playing at the right time and under control.

In Unity

  • Use AudioSource on GameObjects for 3D/2D SFX and AudioListener on the camera (usually one per scene).
  • Use AudioMixer for groups (SFX, Music, Master) and exposed parameters (e.g. volume) so you can drive them from options or code.
  • Trigger clips via Animation Events, UnityEvent, or script: audioSource.PlayOneShot(clip); for one-shots so multiple can overlap.
  • For music, use a single AudioSource (or a small set) and swap clips for menu/gameplay/boss; use DontDestroyOnLoad if the same object persists across scenes.

In Unreal

  • Use Sound Cues (or Sound Attenuation) for 3D positioning and Sound Classes for mixing (SFX vs Music).
  • Trigger with Blueprint or C++: “Play Sound at Location” or attach to an Actor. Use Media Player or Sound assets for music and switch by level or state.

Best practices

  • Pool frequently played one-shots (e.g. footsteps) to avoid spawning too many voices.
  • Batch load audio with your level or use Addressables/streaming if you have many or large files.
  • Respect the player: hook music and SFX volume to options/settings and save preferences.

Pro Tip: Implement a simple audio manager (singleton or service) that exposes “PlaySFX(id)”, “PlayMusic(id)”, “SetMusicVolume(0–1)”. That keeps the rest of the game decoupled and makes it easy to swap assets or add mixing later.

Common mistake: Playing music or SFX without going through a central system. Later you cannot mute, duck, or replace sounds without hunting every call site.


Step 5: Balance and Mix

Rough-in levels so nothing disappears or clips.

  • Set relative levels: SFX readable over music; UI clear but not harsh; ambience in the background.
  • Use ducking if needed (e.g. lower music when dialogue or important SFX plays).
  • Test on target devices (especially laptop speakers and mobile) so low-end and quiet details are still audible.
  • Leave headroom (avoid normalizing everything to 0 dB) so you can master or adjust later without clipping.

Pro Tip: Export a short “audio test” build: one scene that plays each main SFX and music loop with a button or timer. Use it to check balance and levels without loading the full game.


Mini-Challenge

By the end of this lesson:

  1. List every SFX and music cue you need for your current build (use the spreadsheet approach).
  2. Add at least five must-have SFX (e.g. jump, click, hit, collect, game over) and one music loop (menu or gameplay).
  3. Implement them in your engine and hook volume to a simple settings screen or sliders.

Share your audio list or a short clip of your game with sound in the community so others can give feedback on clarity and mix.


Troubleshooting

Issue What to check
No sound in build Audio format supported on platform; AudioListener present; volume not zero; build includes audio files.
Too many voices / performance Use object pooling for one-shots; limit simultaneous instances; consider compression or streaming for long music.
Music cuts or pops Use crossfade or fade-out before switching; avoid stopping in the middle of a sample.
License uncertainty Get written permission or use only licenses that explicitly allow game use and distribution.

What's Next

In Lesson 9: Quality Assurance & Testing you will turn your playable build (with code, art, and audio) into a testable product: test plans, bug tracking, and a small QA pass so you ship with fewer surprises.

For deeper audio techniques, see our Game Audio Track and the Complete Guide to Game Sound Design on the blog. Bookmark this lesson when you add or replace sounds so your pipeline stays consistent.