arcade2d
Enum

AudioCategory

audio/audio.constants.ts:19

Routing categories an AudioInstance (and the components that own one) connects through inside the AudioEngine.

The engine maintains one GainNode per category, so adjusting AudioEngine.musicVolume or AudioEngine.sfxVolume affects every instance routed through that category at once. Category routing is also the seam a future audio-options menu hooks into to give players separate music/sfx volume sliders.

Enumeration Members

#
Music

Long-lived, typically looping playback — the background music a Music component drives. Routed through the engine's music gain node.

#
Sfx

Short, transient playback — UI clicks, weapon fire, footsteps, explosions — emitted by an AudioSource component. Routed through the engine's sfx gain node.

ESC