Skip to content

Brine2D.Systems.Audio Namespace

Definition

Namespace: Brine2D.Systems

Classes
AudioListenerComponent Represents the audio listener (usually attached to the camera or player). There should only be one active listener at a time.
AudioSourceComponent Abstract base for audio source components. Use SoundEffectSourceComponent for one-shot/looping sound effects or MusicSourceComponent for streaming music.
AudioSystem System that processes audio components with 2D spatial audio support. Tracks component state to properly stop sounds when disabled.
MusicSourceComponent Audio source for streaming background music. Only one music track plays at a time — starting music from a second entity replaces the previous one.
SoundEffectSourceComponent Audio source for one-shot or looping sound effects. Supports spatial audio when EnableSpatialAudio is set and a TransformComponent is present on the same entity.