Skip to content

@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.

FieldDefaultDescription
takesThe recordings to choose between.
bus"sfx"Which volume group it plays through.
chance1Probability it plays at all when asked, 0 to 1.
cooldownMs0Asks within this long of the last play are ignored.
volume1Linear gain.
priority0On the voice bus: lower priorities wait, higher ones cut in.

Properties ​

PropertyTypeDefined in
takesSoundTake[]audio/soundBank.ts:26
bus?AudioBusaudio/soundBank.ts:27
chance?numberaudio/soundBank.ts:28
cooldownMs?numberaudio/soundBank.ts:29
volume?numberaudio/soundBank.ts:30
priority?numberaudio/soundBank.ts:31