logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

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

    In this article
    © 2026 Serenity. All Rights Reserved