game-audio
Skill1 starsChanged 2 days agoApache-2.0View on GitHub
Use when a Godot game plays music, sound effects, voices or ambience, when adding volume settings, adaptive music, 3D sound, ducking or gameplay that follows the music's beat, or when the game sounds too loud, too quiet, repetitive or muddy.
12 other projects use a version of this.
Adopted by
Most recently taken up by
- ctaxnagomi/agent-kd-skilltheir own version, first seen Nov 29, 2026
- DECRUX9812/hermes-plugin-gameforgetheir own version, first seen Oct 25, 2026
- sid-lakhani/agents-configtheir own version, first seen Oct 20, 2026
- Bobagi/claude-skillstheir own version, first seen Oct 15, 2026
- OpusGameLabs/game-creatortheir own version, first seen Oct 8, 2026
- xenitV1/Antigravity-Workflowstheir own version, first seen Oct 8, 2026
Used with
Projects with it also use agent-memory.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
DatabricksSkillagent-memory
Add memory capabilities to your agent. Use when: (1) User asks about 'memory', 'state', 'remember', 'conversation history', (2) Want to persist conversations or user preferences, (3) Adding checkpointing or long-term storage.
Also in 3 projects that use this
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- OpusGameLabs/game-creator★ 360same name
- xenitV1/Antigravity-Workflows★ 130same name
- DECRUX9812/hermes-plugin-gameforge★ 44same name
- VoDaiLocz/kilo-kit-mcp★ 27same name
- wormholeportal/Makone★ 27same name
- ctaxnagomi/agent-kd-skill★ 4same name
- poorvith-mp/skills-gamedev★ 4same name
- SKB3002/agenthub★ 4same name
- mattstruble/skills★ 3same name
- sid-lakhani/agents-config★ 3same name
2 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- algorithmsSkill
- animationSkill
- anti-cheatSkill
- asset-pipelineSkill
- automation-hooksSkill
- calendarSkill
- cameraSkill
- console-certSkill
- debug-toolsSkill
- determinismSkill
- game-aiSkill
- game-dataSkill
- game-designSkill
- game-juiceSkill
- game-planSkill
- game-playtestSkill
- gameSkill
- game-telemetrySkill
- godot-addonsSkill
- godot-diagnoseSkill
- godot-editor-bridgeSkill
- godot-export-releaseSkill
- godot-pitfallsSkill
- godot-shaders-vfxSkill
- godot-test-loopSkill
- inputSkill
- kit-reviewSkill
- kitSkill
- legalSkill
- llmSkill
- localizationSkill
- lookSkill
- mathSkill
- mobile-webSkill
- moddingSkill
- multiplayerSkill
- narrativeSkill
- new-gameSkill
- patternsSkill
- performanceSkill
- procgenSkill
- progressionSkill
- release-readinessSkill
- retroSkill
- savesSkill
- serversSkill
- steamSkill
- store-pageSkill
- typographySkill
- ui-accessibilitySkill
- ui-flowsSkill
- verify-before-doneSkill
- weekly-reviewSkill
- xrSkill
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 0 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 21
Every AudioStreamPlayer, AudioStreamPlayer2D and AudioStreamPlayer3D sets Bus.
- Very specific: line 45
When the player takes over a car (or any object), move its players to a higher-priority sub-bus with its own snapshot.
- Very specific: line 77
No sounds yet: hyperdot.ps1 sfx -Sound jump,coin,hit -Count 3 writes placeholder WAVs to sounds/sfx (bfxr's synth, each at -6 dBFS) with a …
- Very specific: line 111
Do not start a sound nobody can hear: check distance before Play(), the way middleware turns far voices virtual.
- Very specific: line 149
Start on the hit, short first, one impact layer per game, a slight duck under the player's own actions, and audio's onsetMs check (over 20 …
- Very specific: line 186
Read beat.md before writing it.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Game audio in Godot 4
How audio middleware (FMOD, Wwise, Unreal's Audio Modulation) structures a game's sound, done with Godot's own nodes, plus
the loudness numbers consoles ask for. Sources, with what each says, are in ${CLAUDE_PLUGIN_ROOT}/docs/audio.md.
1. Buses: one per kind of sound
Middleware routes every sound into a group bus, and groups into Master. Do the same in the Audio panel (saved as
default_bus_layout.tres):
Master <- a hard limiter, the last thing before the speakers
|- Music |- Voice |- SFX |- Ambience |- UI- Every
AudioStreamPlayer,AudioStreamPlayer2DandAudioStreamPlayer3DsetsBus. A player saved without one plays on Master, where only the master volume reaches it; thearchitecturerunner warns (audio-on-master) anddoctornames the kinds of sound with no bus. Each of those buses gets its own volume and mute in the settings menu, saved with
ConfigFileunderuser://(ui-accessibility). Keep the player's sliders apart from your own mix, as FMOD's VCAs and Unreal's "user" buses do: the five buses above stay at 0 dB in the layout and carry only the player's setting; your balancing lives on the players or on sub-buses (FootstepsandWeaponssending toSFX). Sliders run 0 to 1;SetBusVolumeLinearconverts, and 0 mutes:public static void SetBusVolume(string bus, float linear) { int index = AudioServer.GetBusIndex(bus); // -1 if the bus does not exist AudioServer.SetBusVolumeLinear(index, linear); AudioServer.SetBusMute(index, linear <= 0f); }- Shared effects are return buses: one
Reverbbus that the world's sounds send to, not a reverb on every player. - A "snapshot" (a whole mix state: paused, cinematic, underwater) is a set of bus volumes and enabled effects, applied
together and faded with a
Tween. Keep them in one place, so states never fight over a bus. - Drive snapshots from game state and time, which a compressor cannot read (Just Cause 4, Dominic Vega's GDC talk): enemies shooting at the player, an explosion only while the player looks at it. A long state changes as it lasts against fatigue: their storm starts loud, its base drops about 10 dB after 15 s while thunder rises, and only 10 s later may enemy fire duck it. Ambience falls as engaged enemies rise (muted past five, which also stops its streams).
- When the player takes over a car (or any object), move its players to a higher-priority sub-bus with its own
snapshot. Boosting its volume instead built up low end, still pumped under louder sounds and needed a huge
MaxDistance. - A bus name that does not exist falls back to Master at run time, silently: test the names (section 8).
2. Adaptive music
| Technique | Godot | Use |
| Horizontal: switch sections | AudioStreamInteractive: clips and a transition table (from Immediate, NextBeat, NextBar or End; fade Cross, In, Out) | exploration to combat and back |
| Vertical: add layers | AudioStreamSynchronized: stems that start together; fade each one's volume | base, tension and danger layers |
| A list | AudioStreamPlaylist (Shuffle, Loop, FadeTime) | menus, radio, ambient music |
| A stinger | a short clip on its own player on the Music bus, or a clip that auto-advances back to the held one (ReturnToHold) | boss appears, level up |
// Switch section: the transition table decides when (next bar) and how (crossfade).
((AudioStreamPlaybackInteractive)_music.GetStreamPlayback()).SwitchToClipByName("combat");
// Raise the danger layer over two seconds; setting a layer's volume at once is heard as a step.
var layers = (AudioStreamSynchronized)_layers.Stream;
CreateTween().TweenMethod(Callable.From<float>(db => layers.SetSyncStreamVolume(2, db)), layers.GetSyncStreamVolume(2), 0f, 2.0);NextBeatandNextBarneed the clip's BPM, beat count and bar beats, which only Ogg Vorbis and MP3 streams carry (set in the Import dock). On a WAV clip they switch at once. Use Ogg for music.GetStreamPlayback()fails until the player is playing. Drive music from game state ("in combat" for at least two seconds, not each hit), so it does not flicker between sections.- Hiring a composer: commissioning.md (a playable build, why them, the adaptive plan, the rights).
3. Variation and voice limits
Repetition is what makes game audio sound cheap; unlimited voices are what make it muddy.
- No sounds yet:
hyperdot.ps1 sfx -Sound jump,coin,hit -Count 3writes placeholder WAVs tosounds/sfx(bfxr's synth, each at -6 dBFS) with a.bfxrfile that bfxr's editor opens;sfx -Vary sounds/sfx/jump-1.bfxr -Count 5makes variations of one sound for a randomizer. One
AudioStreamRandomizerper repeated sound: at least five footstep samples,RandomNoRepeats, a little pitch and volume spread.RandomPitchis a ratio, not a percentage: 1.05 picks between 1/1.05 and 1.05 (about ±5%), log-uniform.RandomVolumeOffsetDb = 2picks between -2 and +2 dB. About 6 dB halves or doubles the amplitude, so ±2 dB is -21% to +26%; convert withMathf.DbToLinearandMathf.LinearToDb, not by hand.var steps = new AudioStreamRandomizer { PlaybackMode = AudioStreamRandomizer.PlaybackModeEnum.RandomNoRepeats, RandomPitch = 1.05f, RandomVolumeOffsetDb = 2f, }; foreach (var sample in footstepSamples) steps.AddStream(-1, sample);MaxPolyphony(default 1) caps voices per player; past it the oldest voice is cut, with a short fade. Godot has no global voice limit and no priorities:VoiceBudget(next toVoiceLimiter, below) gives each category a cap and a priority, steals the oldest voice of the lowest priority when the total is reached, and never steals protected categories (voice, UI, the player's own weapon); the caller fades out what it returns as stolen.- Cap by place as well as by count: per kind, at most two or three voices within a radius of a new one ("max within
radius", Guy Somberg's rule on Hellgate: London and BioShock 2; past two sources, people hear "footsteps", not steps).
Ten bricks breaking in one corner play two voices, bricks breaking on both sides still sound from both sides, and the
mix stays clear. A tested version, with a total and a cooldown per kind:
${CLAUDE_PLUGIN_ROOT}/examples/csharp/src/Example.Core/Audio/VoiceLimiter.cs. Game code keeps its integer handle, never the pooled player (by then it may be playing another sound), and releases it when the player emitsFinishedor is stopped. A refused sound is dropped: do not ask again every frame. - A pooled player may take
GlobalPosition,VolumeDbandPitchScalejust before or just afterPlay()in the same frame: measured on 4.7.2, the first samples carry the new values either way (2D and 3D players start at the next physics tick). FMOD's "start paused, set, unpause" against a pop is not needed. - A cooldown stops identical sounds stacking into one loud, phasing hit (ten pickups in one frame): skip a repeat within 50 to 100 ms on the same player (FMOD's event cooldown).
- Do not start a sound nobody can hear: check distance before
Play(), the way middleware turns far voices virtual.
4. Sound in space
AudioStreamPlayer3D:AttenuationModel(InverseDistanceloses 6 dB per doubling of distance fromUnitSize,InverseSquareDistance12 dB,Logarithmic),MaxDistance(silent beyond it, and scales the volume down linearly toward it),MaxDb. Distance also dulls the sound: a high-shelf cut atAttenuationFilterCutoffHzby up toAttenuationFilterDb. Write each sound's audible range in the GDD ("footsteps: 20 m") and setMaxDistancefrom it.AudioStreamPlayer2D:MaxDistance(pixels, default 2000) andAttenuation(an exponent).- Rooms: an
Area3DwithReverbBusEnabled,ReverbBusNameandReverbBusAmountsends sounds inside it to a reverb bus (caves, interiors);AudioBusOverridereroutes them instead. - Occlusion is not built in. Every few physics frames, ray-cast from the listener to the source
(
PhysicsRayQueryParameters3D.Create,IntersectRay); when a wall is in the way, lower the volume a few dB and the filter cutoff, through aTweenso it does not click. Wwise's terms help: obstruction (a pillar) dulls only the direct sound; occlusion (a closed door) also dulls what reaches the reverb bus.
5. Ducking and priority
The most important sound must always be heard: dialogue over music, UI over ambience.
- Scripted ducking, exact and testable: when a line starts, tween music down 3 to 6 dB in about 0.2 s, and back after it ends in 0.5 to 1 s. Neither FMOD's nor Wwise's documentation gives a number; these are starting points (blogs go to 12 dB), set by ear. Duck a sub-bus or the players, not the player-facing Music bus, and keep the amount in one constant.
- Sidechain ducking, automatic: an
AudioEffectCompressoron the Music bus withSidechain = "Voice"; the voice bus's level drives the cut. TuneThreshold,RatioandReleaseMsby ear;AttackUsis in microseconds. - For priority between whole buses, prefer scripted snapshots. A sidechain on the lowest bus is ducking almost all the time, so whoever makes those sounds masters them hot to hear them, and the mix loses its dynamics. Just Cause 4 removed most compressors and sidechains and got more punch for less CPU.
- Pause: the tree's pause pauses players; menu music and UI sounds set
ProcessMode = ProcessModeEnum.Always. Muffle the game with anAudioEffectLowPassFilteron its buses, switched on withAudioServer.SetBusEffectEnabled, and duck it. ATweenthat must run in the pause menu needsSetPauseMode(Tween.TweenPauseMode.Process). - Cinematic: lower Ambience and SFX together as one snapshot.
- Voice lines have a priority too: a story or tutorial line is never cut or covered by a systemic bark ("Reloading!"); the bark waits or is dropped, and its subtitle yields the same way. Evolve had to retrofit both (Tara Voelker, GDC).
- Master ends with an
AudioEffectHardLimiter(CeilingDb = -1): it catches stacked peaks, it does not fix a loud mix.
6. Sounds for the player's own actions
Start on the hit, short first, one impact layer per game, a slight duck under the player's own actions, and audio's
onsetMs check (over 20 ms warns for sfx and ui): a sound designer's rules and the kit's check, in
player-sounds.md.
7. Loudness: the numbers
Sony's ASWG-R001 (also the industry's IESD guidance for consoles), measured as the whole game's mix, not per asset:
| Integrated loudness | True peak | |
| Console and PC | -24 LUFS ± 2 LU | at most -1 dBTP |
| Handheld | -18 LUFS ± 2 LU (IESD says -16 for phones) | at most -1 dBTP |
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 audio -Json -Quiet # every sound file
pwsh ${CLAUDE_PLUGIN_ROOT}/ci/godot/hyperdot.ps1 audio -Mix -Seconds 120 -GameArgs '--autoplay' -Json -Quiet # the game's own mixaudiomeasures each file (category from its folder:music/,voice/,ambience/,ui/, else effects) and warns about files that peak over -1 dBTP, voice and music files more than 3 LU from the others, and action sounds that start late (section 6). It needs ffmpeg.audio -Mixrecords what the game sends to the speakers with Movie Maker (a display is needed;--fixed-fps 60) and fails withaudio-off-target,audio-clippingoraudio-silent.-TargetLufs -18for handhelds. ASWG asks for at least 30 minutes of representative play; a two-minute bot run is a check, not a certificate.- Listen at a very low volume too: what still sticks out is too loud, what disappears is too quiet (a tip from the "How to Make Things Pop" GDC talk, in the same doc). It is a check by ear, not a substitute for the meter.
- A mono option (Xbox Accessibility Guideline 105): an
AudioEffectStereoEnhancewithpan_pullout = 0on Master, toggled withAudioServer.SetBusEffectEnabled. Measured on 4.7.2 (tests/Test-MonoAudio.ps1): each side becomes (L+R)/2, so a left-only sound plays on both sides at half level, a centred one is unchanged, and opposite-phase stereo cancels. - Fix a loud or quiet mix with bus volumes, not by re-exporting files. A mono file played centred measures about 3 LU louder in the stereo mix than on its own.
- Web exports play audio as samples by default: bus effects (ducking compressor, low-pass, limiter), reverb and doppler do
not run there. Set the player's
PlaybackTypetoStreamwhere they matter, and listen in a browser.
8. Gameplay on the beat
For rhythm-action (as in Hi-Fi Rush) the player presses whenever they like and the game lands the action on the beat.
Read beat.md before writing it. In short: the clock is the song's playback position (MusicClock), never
summed delta; set the animation's speed so its impact lands on the beat (BeatSync.SpeedScale); reward on-beat play
with extras and never punish off-beat play. Tested in Example.Core/Audio/BeatSync.cs.
9. Prove it
doctorlists no missing bus and thearchitecturerunner noaudio-on-masterwarning- a test sets every bus name the code uses and checks
AudioServer.GetBusIndex(name) >= 0, and that muting Music leaves Voice unmuted (godot-test-loop, in a test that runs inside Godot) - the ducking and snapshot code is plain C# that returns target volumes per bus, unit-tested without the engine
audio -Jsonhas no warnings you have not decided to keep, andaudio -Mixpasses on a bot run (automation-hooks)- every
sfxanduifile'sonsetMsis withinonsetMaxMs, or the slow start is a decision written in the GDD - the
juicerunner pairs each hit, pickup and death with its sound (game-juice)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

