Audio, the Polish Pipeline, and Accessibility
▶ PRESS START
Lucas P. Cordova, Ph.D.
Willamette University | Thursday, November 12, 2026
The Sprint 2 report and peer evaluation are due tonight, 9:59 PM. The beta gate and content lock are Thursday, November 19.
The quest log
| When | What | Where |
|---|---|---|
| Tonight, 9:59 PM | Sprint 2 report and peer evaluation | docs/sprint-2.md; Review 2 sheets answered in FEEDBACK.md |
| Today, in class | Sprint 3 begins. It runs to the beta gate | Cards labeled sprint-3, each with an owner |
| Tue Nov 17 | Balancing and tuning with playtest evidence | Your numbers should live in data by then |
| Thu Nov 19, 9:59 PM | Beta gate, Stakeholder Review 3, content lock | All content in; draft itch.io page; tag beta |
| Tue Nov 24 | Shipping: exports, release checklists, showcase prep | Class meets. Fall Break starts the next day |
| Thu Dec 3 | Showcase: guests play your game | The classroom arcade, Ford 202 |
The beta requirement that today serves: real art and audio have replaced placeholders, or the placeholder is a declared choice.
What audio does, and the three pieces Godot gives you
| Job | The player learns | In Rival Brains |
|---|---|---|
| Confirm | That worked. The input landed | A pluck for every berry eaten |
| Warn | Something changed, and it is off screen or behind you | Two rising notes when the rival spots Blitz |
| Judge | That was good, or that was bad | A falling phrase on CAUGHT, a rising one on ESCAPED |
| Set the mood | What kind of place this is, and how fast to play | A looping chase tune |
Week 9 called this juice: feedback that makes a mechanic readable. Sound is the feedback channel that works when the player is looking somewhere else.
| Piece | What it is | Where you meet it |
|---|---|---|
| AudioStream | The recording: a .wav or .ogg file, imported as a resource | The FileSystem dock; a player's Stream slot |
| AudioStreamPlayer | A node that plays one stream at the same volume everywhere: music, menus, pickups | The Scene dock. Call play() on it |
| AudioStreamPlayer2D | A player with a position. It pans left and right and fades with distance from the camera [1] | A child of the thing making the noise |
| Bus | A channel every player sends its sound into. Buses are where volume is controlled for a whole group [2] | The Audio panel at the bottom of the editor |
Stream into player, player into bus, bus into Master, Master into the speakers. Every sound in the game takes that trip.
In rival.gd, the CHASE arm of the door gains one line:
State.CHASE: if old_state == State.PATROL: leash = global_position modulate = Color("ff2e97") $AlertSound.play()
In game.gd, the berry signal handler gains one line:
func _on_berry_eaten() -> void: berries += 1 hud.show_berries(berries) berry_sound.play()
berry_eaten, body_entered, pressed._process restarts sixty times a second. Play on the change.Buses, volume, and a berry sound that varies
MAIN.TSCN, AT DEMO9-LAP1Main (Node2D) game.gd ├─ Maze, Player, BerryStorm ├─ Rival (rival.tscn) │ ├─ AlertSound (AudioStreamPlayer2D) │ └─ FrightenedSound (AudioStreamPlayer2D) ├─ Audio (Node) │ ├─ Music (AudioStreamPlayer, Autoplay on) │ ├─ BerrySound (AudioStreamPlayer) │ ├─ CaughtSound (AudioStreamPlayer) │ └─ EscapedSound (AudioStreamPlayer) └─ UI (CanvasLayer)
assets/audio/. Every one of them sends to Master.The live demo starts on the tag demo9-lap1. Tag demo9-lap2 and branch demo9 are the catch-up points. project.godot is the same on all of them.
Thirty seconds of play, ears open. With your partner, write down three things wrong with how this game sounds. Be specific: which sound, and what about it.
Then one more: something a player would want to do about the sound that this build gives them no way to do.
I am playing. You are listening until when the rival catches me.
| Symptom | Cause | Fix, today |
|---|---|---|
| The music buries everything else | Every player is at full volume into one bus | A quieter music player: the mix |
| The berry pluck stutters and cuts itself off | One player, one voice. Each play() restarts it | Max Polyphony on the player |
| Twenty identical plucks in a row grate | The same recording at the same pitch, over and over | A random pitch on each play |
| No way to turn the music down and keep the effects | There is only Master, so there is only one knob | Music and SFX buses, then sliders |
None of these is a bug the debugger can find. The game is correct and still sounds unfinished. That gap is what polish means.
An audio bus is a named channel that players send their sound into. A bus has one volume, a mute switch, and optional effects, and it passes its sound along to another bus. Every project starts with one bus, Master, which feeds the speakers [2].
THE LAYOUT WE ARE BUILDINGMusic player -> Music -> Master -> speakers Berry, Alert -> SFX ->
default_bus_layout.tres. Commit it.With demo9-lap1 open in Godot, game stopped:
Music, and press Enter.SFX.default_bus_layout.tres. The editor saved the layout for you.Bus names are matched by spelling, capitals included. Write them down once and use the same two names in every scene and script.
Nothing sounds different yet. No player sends to the new buses.
Still in main.tscn:
rival.tscn. Click AlertSound, set Bus to SFX. Same for FrightenedSound. Save the scene.One bus per kind of sound the player might want to turn down separately. For most games in this room: Music and SFX.
While the game runs, click the M on the Music strip to mute it and hear the effects alone. Click it again to bring the music back.
Stop the game. In main.tscn:
-10 and press Enter.Two volumes, two owners. The player node's Volume dB is your mix: how loud this sound is next to the others. The bus volume belongs to the player of the game: a settings slider will drive it.
Stop the game. In main.tscn:
6. Save the scene.game.gd. Scroll to _on_berry_eaten at the bottom.berry_sound.play(), so the function reads as shown.func _on_berry_eaten() -> void: berries += 1 hud.show_berries(berries) berry_sound.pitch_scale = randf_range(0.9, 1.2) berry_sound.play()
pitch_scale 1.0 is the recording as made. A small random range keeps a repeated sound from grating.Catch-up: git checkout demo9-lap2. For a sound with several recordings, look up AudioStreamRandomizer [1].
| Symptom | Cause, and the cure |
|---|---|
| No sound at all | The player has no Stream, or nothing calls play(), or its bus is muted in the Audio panel (a lit M). |
| The music plays once and stops | The file is not set to loop. Click it in the FileSystem dock, open the Import dock, set Loop Mode to Forward (a Loop checkbox for Ogg Vorbis), click Reimport [3]. |
| The bus slider does nothing to one sound | That player still sends to Master, or its Bus name is spelled differently from the bus. |
| A teammate pulls and has no buses | default_bus_layout.tres was never committed. |
| A 2D sound is silent or very quiet | The AudioStreamPlayer2D is far from the camera. Use a plain AudioStreamPlayer for sounds that should ignore distance. |
| The music stops when the game pauses | Paused nodes stop playing. Set the Music node's Process > Mode to Always in the Inspector. |
From placeholder to credited, final asset
An asset pipeline is the fixed route a sound or an image takes from wherever it came from to the running game. When every asset takes the same route, swapping a placeholder for the final version is a file copy.
| Stage | The rule | Why |
|---|---|---|
| 1. Hook | Wire a placeholder the day the mechanic works | The code path exists early. The final sound is a swap |
| 2. Name and place | assets/audio/, named for the event: berry.wav, alert.wav | Replacing the file keeps every scene pointing at it |
| 3. Import | Set looping and format in the Import dock | Import settings travel with the repo, in the .import file |
| 4. Mix | Set the player's Volume dB with the game running | Files from different sources arrive at very different levels |
| 5. Credit | Add the line to CREDITS.md before the commit | Nobody remembers where a sound came from three weeks later |
| WAV | Ogg Vorbis | |
|---|---|---|
| Use it for | Short, repeated effects: hits, pickups, clicks | Music, speech, long ambience [3] |
| Because | Cheapest to play. Many can overlap at no cost | Much smaller file. Costs a little to decode |
| Looping | Import dock: Loop Mode, then Reimport | Import dock: Loop, then Reimport |
| Watch for | Silence at the start of the file makes the sound feel late | A loop that clicks at the seam |
| Source | What you owe | Examples |
|---|---|---|
| You made it | Nothing. Say so in the credits | jsfxr or ChipTone for retro effects; your own recordings |
| CC0 (public domain) | Nothing required. A credit line is good manners | Kenney audio packs; CC0 sounds on Freesound |
| CC BY | A credit line with the author and the license | Much of Freesound and OpenGameArt |
| Generative AI | Disclosure in the submission and in the game's credits | Per the syllabus |
| Ripped from a game, a film, or a song | You cannot use it | An academic honesty violation in this course |
The syllabus rule: every asset your team did not create is credited in the game and listed in the repository. The Canvas Resources page has the vetted sources and a license cheat sheet.
| Order | Ask | Typical fix |
|---|---|---|
| 1 | Does every player action answer back? | A sound and a visual on jump, hit, pickup, button press |
| 2 | Does every state change announce itself? | An entry effect in the door: enemy alerts, power-ups, win, loss |
| 3 | Do the screens connect? | Title, pause, win, and loss all reachable and all leavable |
| 4 | Is it consistent? | One font, one palette, sounds at matching levels |
| 5 | Is anything still a grey box or silent by accident? | Swap it, or declare it a choice in the README |
Each answer of no is an issue labeled polish. Work the list from the top: the first two rows are what a stranger notices in the first ten seconds.
The basic accessibility list, and a settings panel that saves
A game is accessible when a player's body, senses, or situation does not lock them out of it. The barrier is in the design, so the design can remove it [4].
| Permanent | Temporary | Situational | |
|---|---|---|---|
| Seeing | Color blindness, low vision | Dilated pupils after an eye exam | A laptop screen in sunlight |
| Hearing | Deaf or hard of hearing | An ear infection | A loud room. A muted laptop |
| Moving | One hand, a tremor | A wrist in a cast | A coffee in the other hand |
| Guideline [6] | In Godot | Cost |
|---|---|---|
| Separate volume controls for effects and music | Two buses and two sliders | Today |
| No essential information by sound alone | Every warning sound gets something on screen | One line |
| No essential information by a fixed color alone | A symbol, a shape, or a word next to the tint | One line |
| An easily readable default font size | Bigger theme font sizes; an option for bigger still | Minutes |
| Allow controls to be remapped | You have used input actions since week 2. InputMap can change them at run time | An afternoon |
| An option to adjust the game speed | Engine.time_scale | One line |
| All settings are saved and remembered | ConfigFile at user:// | Ten lines |
These are from the Basic tier of the Game Accessibility Guidelines: wide reach, low cost, right for almost any game.
match new_state: State.PATROL: modulate = Color.WHITE $StateLabel.text = "" State.CHASE: if old_state == State.PATROL: leash = global_position modulate = Color("ff2e97") $StateLabel.text = "!" $AlertSound.play() State.RETURN: modulate = Color("8f8ab0") $StateLabel.text = "?" State.FRIGHTENED: modulate = Color("478cbf") $StateLabel.text = "~" $FrightenedSound.play()
Every signal the player needs to survive goes out on two channels. Then losing one channel (to color blindness, to a muted laptop, to a loud room) leaves the other.
| State | Tint | Symbol | Sound |
|---|---|---|---|
| PATROL | white | ||
| CHASE | magenta | ! | alert |
| RETURN | grey | ? | |
| FRIGHTENED | blue | ~ | wobble |
rival.gd on demo9. StateLabel is a Label child of the Rival, above its head. Three new lines in the same door.
func _apply() -> void: _set_volume("Music", music_slider.value) _set_volume("SFX", sfx_slider.value) get_tree().call_group("hud", "set_big_text", big_text.button_pressed) Engine.time_scale = 0.7 if slow_mode.button_pressed else 1.0 func _set_volume(bus_name: String, amount: float) -> void: var bus := AudioServer.get_bus_index(bus_name) AudioServer.set_bus_volume_db(bus, linear_to_db(amount)) AudioServer.set_bus_mute(bus, amount <= 0.0)
linear_to_db() converts it to the decibels a bus wants.call_group again: the panel does not know where the HUD lives. Anything in the hud group with a set_big_text method hears it.Engine.time_scale = 0.7 slows the whole simulation. Audio keeps its normal speed.settings.gd sits on a VBoxContainer inside the pause menu: two HSliders and two CheckButtons.
const PATH := "user://settings.cfg" @onready var music_slider: HSlider = $MusicRow/MusicSlider @onready var sfx_slider: HSlider = $SfxRow/SfxSlider @onready var big_text: CheckButton = $BigText @onready var slow_mode: CheckButton = $SlowMode func _ready() -> void: var file := ConfigFile.new() file.load(PATH) # no file yet is fine: every get below has a default music_slider.set_value_no_signal(file.get_value("audio", "music", 1.0)) sfx_slider.set_value_no_signal(file.get_value("audio", "sfx", 1.0)) big_text.set_pressed_no_signal(file.get_value("access", "big_text", false)) slow_mode.set_pressed_no_signal(file.get_value("access", "slow_mode", false)) _apply()
func _on_changed(_value: Variant = null) -> void: _apply() var file := ConfigFile.new() file.set_value("audio", "music", music_slider.value) file.set_value("audio", "sfx", sfx_slider.value) file.set_value("access", "big_text", big_text.button_pressed) file.set_value("access", "slow_mode", slow_mode.button_pressed) file.save(PATH)
user:// is a per-player folder outside the project. It survives quitting, and it works in the exported game.get_value carries a default, so the first run (no file) just works._no_signal setters load the controls without firing a save.In hud.gd, the method the settings panel calls through the group:
func set_big_text(on: bool) -> void: for label in [time_label, berry_label, best_label]: label.add_theme_font_size_override("font_size", 44 if on else 28)
PAUSE_MENU.TSCN, ON DEMO9PauseMenu (ColorRect) Process Mode: Always └─ Center / Menu ├─ ResumeButton, RestartButton └─ Settings (VBoxContainer) settings.gd ├─ MusicRow / MusicSlider ├─ SfxRow / SfxSlider ├─ BigText, SlowMode (CheckButton) └─ Preview (plays on the SFX bus)
Two buses and one option in your game, in twenty minutes
Everyone builds the two buses. Then each team picks one row:
| Your alpha | Build this |
|---|---|
| Has sound already | A Music and an SFX slider in your pause or title menu, driving the buses |
| Is silent | Three hooked sounds from the Resources page: one confirm, one warn, one judge. Credit them |
| Tells the player something by color alone | A second channel: a symbol, a shape, a word, or a sound |
| Has small HUD text, or asks for fast reactions | A big text toggle, or a slow mode toggle |
Teams work in the team repo. One laptop builds the buses and routes the players; the other starts the option. Say your row out loud before the timer starts.
Twenty minutes, on the timer:
Music bus and an SFX bus.default_bus_layout.tres.settings.gd on the rival-brains demo9 branch is yours to copy.polish or a11y.Stuck? The Nothing happened? slide, then a hand up.
Two buses, a mix on the players, sliders on the buses, every signal on two channels, and settings that save.
Sprint 3 begins
The rest of class is yours. Both laptops on the team repo. Sprint 3 is one week long and ends at content lock. The Sprint 2 report, due tonight, quotes the Sprint 3 board in its last section.
| Beta asks for | On your board as |
|---|---|
| All content in: every level, enemy, menu, and asset that will ship | One card per missing piece, each with an owner. Anything else is cut today |
| Real art and audio in place of placeholders | The polish cards from today, top two rows of the polish pass first |
| The full flow: title, play, win and loss, and a way back | A card for each screen that is missing or a dead end |
| A first balance pass, with the numbers in data | Tuesday's lecture. Move constants to @export before then |
| A draft itch.io page with a build uploaded | One card, one owner, started this week |
I am walking the room. Flag me down for anything stuck.
What you know now
Tonight, 9:59 PM: Sprint 2 report and peer evaluation. Tue Nov 17: balancing and tuning. Thu Nov 19: the beta gate, Stakeholder Review 3, and content lock.
default_bus_layout.tres).github.com/LucasCordova/rival-brains, branch demo9, tags demo9-lap1 and demo9-lap2.