1---
2name: game-audio
3description: Game audio principles. Sound design, music integration, adaptive audio systems.
4category: Development & Code Tools
5source: antigravity
6tags: [ai, workflow, design, cro]
7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/game-development/game-audio
8metadata:
9 source: https://skillmd.com/skills/sickn33/game-audio
10---
11
12
13# Game Audio Principles
14
15> Sound design and music integration for immersive game experiences.
16
17---
18
19## 1. Audio Category System
20
21### Category Definitions
22
23| Category | Behavior | Examples |
24|----------|----------|----------|
25| **Music** | Looping, crossfade, ducking | BGM, combat music |
26| **SFX** | One-shot, 3D positioned | Footsteps, impacts |
27| **Ambient** | Looping, background layer | Wind, crowd, forest |
28| **UI** | Immediate, non-3D | Button clicks, notifications |
29| **Voice** | Priority, ducking trigger | Dialogue, announcer |
30
31### Priority Hierarchy
32
33```
34When sounds compete for channels:
35
361. Voice (highest - always audible)
372. Player SFX (feedback critical)
383. Enemy SFX (gameplay important)
394. Music (mood, but duckable)
405. Ambient (lowest - can drop)
41```
42
43---
44
45## 2. Sound Design Decisions
46
47### SFX Creation Approach
48
49| Approach | When to Use | Trade-offs |
50|----------|-------------|------------|
51| **Recording** | Realistic needs | High quality, time intensive |
52| **Synthesis** | Sci-fi, retro, UI | Unique, requires skill |
53| **Library samples** | Fast production | Common sounds, licensing |
54| **Layering** | Complex sounds | Best results, more work |
55
56### Layering Structure
57
58| Layer | Purpose | Example: Gunshot |
59|-------|---------|------------------|
60| **Attack** | Initial transient | Click, snap |
61| **Body** | Main character | Boom, blast |
62| **Tail** | Decay, room | Reverb, echo |
63| **Sweetener** | Special sauce | Shell casing, mechanical |
64
65---
66
67## 3. Music Integration
68
69### Music State System
70
71```
72Game State → Music Response
73│
74├── Menu → Calm, loopable theme
75├── Exploration → Ambient, atmospheric
76├── Combat detected → Transition to tension
77├── Combat engaged → Full battle music
78├── Victory → Stinger + calm transition
79├── Defeat → Somber stinger
80└── Boss → Unique, multi-phase track
81```
82
83### Transition Techniques
84
85| Technique | Use When | Feel |
86|-----------|----------|------|
87| **Crossfade** | Smooth mood shift | Gradual |
88| **Stinger** | Immediate event | Dramatic |
89| **Stem mixing** | Dynamic intensity | Seamless |
90| **Beat-synced** | Rhythmic gameplay | Musical |
91| **Queue point** | Next natural break | Clean |
92
93---
94
95## 4. Adaptive Audio Decisions
96
97### Intensity Parameters
98
99| Parameter | Affects | Example |
100|-----------|---------|---------|
101| **Threat level** | Music intensity | Enemy count |
102| **Health** | Filter, reverb | Low health = muffled |
103| **Speed** | Tempo, energy | Racing speed |
104| **Environment** | Reverb, EQ | Cave vs outdoor |
105| **Time of day** | Mood, volume | Night = quieter |
106
107### Vertical vs Horizontal
108
109| System | What Changes | Best For |
110|--------|--------------|----------|
111| **Vertical (layers)** | Add/remove instrument layers | Intensity scaling |
112| **Horizontal (segments)** | Different music sections | State changes |
113| **Combined** | Both | AAA adaptive scores |
114
115---
116
117## 5. 3D Audio Decisions
118
119### Spatialization
120
121| Element | 3D Positioned? | Reason |
122|---------|----------------|--------|
123| Player footsteps | No (or subtle) | Always audible |
124| Enemy footsteps | Yes | Directional awareness |
125| Gunfire | Yes | Combat awareness |
126| Music | No | Mood, non-diegetic |
127| Ambient zone | Yes (area) | Environmental |
128| UI sounds | No | Interface feedback |
129
130### Distance Behavior
131
132| Distance | Sound Behavior |
133|----------|----------------|
134| **Near** | Full volume, full frequency |
135| **Medium** | Volume falloff, high-freq rolloff |
136| **Far** | Low volume, low-pass filter |
137| **Max** | Silent or ambient hint |
138
139---
140
141## 6. Platform Considerations
142
143### Format Selection
144
145| Platform | Recommended Format | Reason |
146|----------|-------------------|--------|
147| PC | OGG Vorbis, WAV | Quality, no licensing |
148| Console | Platform-specific | Certification |
149| Mobile | MP3, AAC | Size, compatibility |
150| Web | WebM/Opus, MP3 fallback | Browser support |
151
152### Memory Budget
153
154| Game Type | Audio Budget | Strategy |
155|-----------|--------------|----------|
156| Mobile casual | 10-50 MB | Compressed, fewer variants |
157| PC indie | 100-500 MB | Quality focus |
158| AAA | 1+ GB | Full quality, many variants |
159
160---
161
162## 7. Mix Hierarchy
163
164### Volume Balance Reference
165
166| Category | Relative Level | Notes |
167|----------|----------------|-------|
168| **Voice** | 0 dB (reference) | Always clear |
169| **Player SFX** | -3 to -6 dB | Prominent but not harsh |
170| **Music** | -6 to -12 dB | Foundation, ducks for voice |
171| **Enemy SFX** | -6 to -9 dB | Important but not dominant |
172| **Ambient** | -12 to -18 dB | Subtle background |
173
174### Ducking Rules
175
176| When | Duck What | Amount |
177|------|-----------|--------|
178| Voice plays | Music, Ambient | -6 to -9 dB |
179| Explosion | All except explosion | Brief duck |
180| Menu open | Gameplay audio | -3 to -6 dB |
181
182---
183
184## 8. Anti-Patterns
185
186| Don't | Do |
187|-------|-----|
188| Play same sound repeatedly | Use variations (3-5 per sound) |
189| Max volume everything | Use proper mix hierarchy |
190| Ignore silence | Silence creates contrast |
191| One music track loops forever | Provide variety, transitions