@relu-interactives/spatial-ecs
@relu-interactives/spatial-ecs / index / SoundSlot
Interface: SoundSlot ​
Defined in: audio/soundBank.ts:25
A named sound the game asks for ("hit", "footstep"), played as a random take.
| Field | Default | Description |
|---|---|---|
takes | The recordings to choose between. | |
bus | "sfx" | Which volume group it plays through. |
chance | 1 | Probability it plays at all when asked, 0 to 1. |
cooldownMs | 0 | Asks within this long of the last play are ignored. |
volume | 1 | Linear gain. |
priority | 0 | On the voice bus: lower priorities wait, higher ones cut in. |
Properties ​
| Property | Type | Defined in |
|---|---|---|
takes | SoundTake[] | audio/soundBank.ts:26 |
bus? | AudioBus | audio/soundBank.ts:27 |
chance? | number | audio/soundBank.ts:28 |
cooldownMs? | number | audio/soundBank.ts:29 |
volume? | number | audio/soundBank.ts:30 |
priority? | number | audio/soundBank.ts:31 |

