Namespace Serenity.AudioPlayer.Domain.Types
Structs
AudioPlaybackCandidate
Pure, Unity-agnostic snapshot of a currently playing audio slot, used by
IAudioPriorityCandidateSelector
to decide which slot (if any) should be reassigned to a higher-priority sound.
Keeping this free of AudioSource lets the replacement decision be unit tested
without the Unity runtime.
Enums
AudioPlayerType
Enumeration of different types of audio players.
AudioPriorityPolicy
Determines how the audio player should behave when a clip is requested but no
free AudioSource is available in the pool.
Priority is expressed in Serenity semantics: a higher numeric priority means the
sound is more important (the opposite of Unity's AudioSource.priority).
AudioRolloffMode
Engine-agnostic equivalent of Unity's AudioRolloffMode: how a 3D sound's volume
attenuates with distance from the listener.
Numeric values mirror UnityEngine.AudioRolloffMode so the Unity layer can map between
them by value. Lives in the Domain layer, which must not depend on UnityEngine.