Files
siege_deck/Docs/SiegeDeck/Engine/Audio.md
T
darman 45b246c1d7 docs: Initialize comprehensive project documentation
Migrates existing GDD and engine design notes from HacknPlan into a new Obsidian vault.

This establishes a centralized, version-controlled knowledge base covering engine architecture, game constraints, design decisions, and open questions.
2026-09-24 23:55:48 +02:00

655 B

tags
tags
engine
audio

Audio

Built on SDL_mixer 3.

  • Buses: master, music, sfx, ui. Each has its own volume, saved with settings.
  • Voice limiting: a per-sound maximum of concurrent voices plus a minimum retrigger interval, so twenty towers firing in the same tick don't produce twenty overlapping sounds.
  • Pause behaviour: gameplay sounds follow SimClock (paused during planning); UI sounds and music don't.
  • Spatialisation: simple pan and distance attenuation from the camera focus point is enough for a top-down tower defense. Full 3D audio isn't needed.
  • Sounds and music are Handle<T> assets (see Assets).