Skip to content

Audio

Feather plays imported sounds from objects, as project-wide music and ambience, and from scripts. A mixer routes every sound through a bus, picks variations through cues, ducks one bus under another, muffles sounds behind walls and gives every sound the reverb of the space the listener is in. Audio plays during Play and in exported games.

  1. Open World & terrain → Audio.
  2. Click Import sound… and choose an OGG, WAV or MP3 file.
  3. The sound appears under Sound assets, where you can rename or remove it.

A project holds up to 2,000 sounds of up to 64 MiB each. Each file is stored once, by content hash.

The Audio tab also sets project-wide sound:

Setting Description Default
Master volume Scales everything 1
Music A sound that plays as the music loop None
Music volume Linear, 0 to 4 0.5
Day ambience, Night ambience Ambience beds that cross-fade with the time of day None
Ambience volume Linear, 0 to 4 0.6

Music plays on the music bus and the ambience beds on the ambience bus.

A Sound component makes an object play a sound, such as a river, a forge or tavern music.

  1. Select the object.
  2. In Details, click Add Component and choose Sound.
  3. Pick the sound and set its options.
Setting Description Default Range
Volume Linear; 1 is the original level 1 0 to 4
Pitch Playback rate 1 0.25 to 4
Loop Repeat the sound On —
Play on start Start when Play begins; otherwise a script starts it On —
Positional Heard only within Range of the object; otherwise heard everywhere On —
Range Distance in metres 25 1 to 2,000
Plays Always, Day or Night Always —

Open Window → Mixer · buses, cues, reverb to edit buses, cues, ducking, occlusion and reverb. Click Apply to commit your changes or Revert to discard them.

The Mixer panel showing the sound buses and a rifle_fire cue

Every project has five buses: music, sfx, ambience, voice and ui. You can add more. Each bus has a linear volume from 0 to 4 and a reverb send from 0 to 1: how much of the room’s reverb the sounds on it get. Unless you set it, the send is 0 for music and ui, 0.5 for ambience and 1 for every other bus. Under Sound buses, choose the bus each sound plays on; sounds without one play on sfx.

Players set music, effects and voice volumes in the pause menu of an exported game.

While the camera is under water, everything on the other buses is muffled (music only slightly — the ui bus is not) and a muffled ambience, dive and surface splashes and breath bubbles play. Those levels and the project sounds that can replace the built-in ones live with the water look — see Underwater and swimming.

A cue is a named set of variations. Playing the cue picks one of its sounds at random, with a random volume and pitch inside the ranges you set. Use cues for gunshots, footsteps and impacts. Wherever a sound name is accepted, such as in combat settings, animation events or play_sound, a cue with that name is used first.

Setting Description Default Range
Sounds Sounds to pick from — 1 to 32
Volume [min, max] 0.9 to 1.0 0 to 4
Pitch [min, max] 0.95 to 1.05 0.25 to 4
Bus Overrides the picked sound’s bus The sound’s bus —
Max instances How many can play at once; 0 is unlimited 0 —
Cooldown Seconds before the cue can play again 0 0 to 60 s
Avoid repeat Never picks the same sound twice in a row On —

A ducking rule makes a target bus quieter while a sound plays on a trigger bus. New projects duck music under voice.

Setting Description Default Range
Target The bus that gets quieter music —
Trigger The bus that causes it voice —
Amount Volume multiplier while ducked 0.4 0 to 1
Attack Seconds to duck 0.15 0 to 10 s
Release Seconds to recover 0.8 0 to 10 s

Walls between the listener and a positional sound make it quieter and muffled. Each check casts rays from the listener: one straight at the sound and the rest at points around it. The share of rays that static colliders block sets how much of the sound is lost, so a sound half behind a doorframe is half muffled. Sensors and the sound’s own object never block it, sounds out of range are not checked, and later checks ease in so walking past a post does not make the sound flicker. Occlusion is on by default.

Setting Description Default Range
Walls muffle positional sounds Turns occlusion on On —
volume when blocked Volume multiplier when every ray is blocked 0.45 0 to 1
muffle Low-pass cutoff when every ray is blocked; 20,000 Hz is no muffling 900 Hz 100 to 20,000 Hz
rays Rays per check: the direct line, then points around the sound 5 1 to 9
spread How far around the sound the extra rays aim 0.6 m 0 to 5 m
every Seconds between checks per sound 0.15 0.02 to 5 s

Every sound rings with the space the listener is in. Under Reverb, the mixer builds that sound in three layers: the Outdoor reverb everywhere, blended toward the auto reverb as the space closes in, then each reverb zone the listener is inside, from the lowest to the highest priority.

Positional sounds and sounds on a bus with a reverb send above 0 play through the reverb; positional sounds farther away get more of it. The Music loop and the day and night ambience beds stay dry.

Outdoor air and every zone share five reverb values:

Setting Description Range
wet Reverb level; 0 is dry and costs nothing 0 to 1
decay Seconds for the tail to fall by 60 dB 0.1 to 20 s
damping High-frequency loss in the tail: 0 is bright tiles, 1 dark and soft 0 to 1
pre-delay Seconds before the tail starts; bigger rooms wait longer 0 to 0.12 s
size Room size, the spacing of the reflections 0.3 to 2.5

Outdoor defaults to wet 0, decay 1 s, damping 0.5, pre-delay 0.01 s and size 1, so open air is dry.

Auto reverb (measure how enclosed the listener is) makes caves, interiors and canyons ring with no zones placed by hand. Rays from the listener, spread over the walls and ceiling but not the floor, look for static colliders within range. The share that hit is how enclosed the listener is; their average length sets how long, late and large the reverb is. The reverb level is wet times the enclosure to the power of 1.5, so open ground stays dry. It is on by default.

Setting Description Default Range
wet Reverb level when fully enclosed 0.4 0 to 1
damping High-frequency loss in the tail 0.45 0 to 1
range Walls farther away count as open air 50 m 2 to 500 m
rays Rays per probe 16 4 to 64
every Seconds between probes 0.25 0.05 to 5 s

A reverb zone gives an area its own reverb while the listener is inside: a hall, a crypt, a cave. Under Zones, each zone has a name, an on switch, a preset, a shape, and Remove zone.

Setting Description Default Range
Shape sphere or box sphere —
Centre World position in metres [0, 0, 0] —
radius Sphere radius 20 m 0.5 to 5,000 m
Size Box size [x, y, z] [20, 8, 20] m 0.5 to 5,000 m each
yaw Box rotation around the vertical, in degrees 0 —
fade Metres inside the edge over which the zone blends in; 0 is a hard edge 3 m 0 to 500 m
priority Where zones overlap, the higher priority wins 0 -1,000 to 1,000

A zone also has the five reverb values. A new zone starts from the room preset. Picking a preset fills the five values; editing any of them afterwards marks the zone custom.

Preset wet decay damping pre-delay size
small_room 0.2 0.4 s 0.6 0.004 s 0.4
room 0.25 0.7 s 0.5 0.008 s 0.6
bathroom 0.35 1.2 s 0.15 0.003 s 0.4
hall 0.35 2.2 s 0.35 0.025 s 1.6
cathedral 0.45 4.5 s 0.3 0.04 s 2.4
cave 0.45 3.0 s 0.45 0.02 s 1.8
tunnel 0.4 1.8 s 0.5 0.012 s 1.2
arena 0.3 2.8 s 0.4 0.035 s 2.2
forest 0.12 0.9 s 0.7 0.015 s 1.2
dead 0 0.3 s 0.8 0 s 0.3

Zone names must be unique and 1 to 128 characters long.

Function Description
play_sound(name) Plays a sound or cue
play_sound_at(name, x, y, z) Plays a sound or cue at a world position
set_bus_volume(bus, volume) Sets a bus volume
set_bus_volume(bus, volume, seconds) Fades a bus to a volume over time
set_reverb_zone(name, on) Switches a reverb zone off or back on, such as when a door closes; lasts until Stop
reverb_zone() The name of the strongest zone at the listener, or "" outside zones
reverb_level() The reverb level heard now, 0 to 1
enclosure() How enclosed the listener is, from 0 (open air) to 1 (sealed), as measured by auto reverb
play_music(name) Swaps the music loop for a project sound, by name or ID; "" is silence
reset_music() Goes back to the project’s Music

play_music changes which sound plays as the music loop, on the music bus. A name that matches no sound also plays silence.

Games with their own options screen can read and change the player’s volumes with user_settings() and set_user_setting; see Game UI.

fn on_event(name, data) {
if name == "boss_intro" {
set_bus_volume("music", 0.0, 2.0);
play_sound("boss_roar");
}
if name == "boss_fight" {
set_bus_volume("music", 1.0, 0.5);
play_music("boss_theme");
}
if name == "boss_defeated" {
reset_music();
}
if name == "crypt_door_closed" {
set_reverb_zone("crypt", false);
}
}
Command Purpose
sound.import Imports an OGG, WAV or MP3 from the workspace as a project sound
audio.get Reads the mixer and every sound with its bus
audio.set Patches audio settings (JSON merge; arrays replace)
audio.upsert Creates or patches one bus, cue or reverb zone by name; a zone’s preset fills its reverb values and fields given beside it win
audio.environment Reports the reverb heard at a position without running the game
audio.remove Removes a bus, cue or reverb zone
audio.assign Puts a sound on a bus

Create a footstep cue with three variations:

Terminal window
feather-cli command audio.upsert --json '{
"kind": "cue",
"value": {
"name": "footstep",
"sounds": ["step_1", "step_2", "step_3"],
"volume": [0.8, 1.0],
"pitch": [0.9, 1.1],
"bus": "sfx",
"cooldown": 0.1
}
}'

Add a box-shaped crypt that starts from the cave preset, then check the reverb at its centre:

Terminal window
feather-cli command audio.upsert --json '{
"kind": "reverb_zone",
"value": {
"name": "crypt",
"preset": "cave",
"shape": "box",
"center": [0, 2, -20],
"size": [12, 6, 30],
"fade": 2
}
}'
feather-cli command audio.environment --json '{"position":[0,2,-20]}'

audio.environment returns the strongest zone (crypt), the blended reverb (here the cave values: wet 0.45, decay 3 s) and every zone covering the point with its weight from 0 to 1. Pass enclosure (0 to 1) and distance in metres to include an auto reverb result, for example "enclosure": 0.9, "distance": 8 for a cave with no zone. A --verify-run report includes an audio section with the live zone, enclosure, wall distance and reverb, and how many voices are playing, run through the effects and are mostly blocked (see Profiler).

See Agents & automation for connecting a live session.