logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.AudioPlayer.Tests.Infrastructure

    Classes

    UnityAudioDepthCueMechanismTests

    Pins the Unity mechanisms the positioned depth cues rely on, so a Unity upgrade that changes them fails here instead of silently breaking the cues. Each test also records the observed values. The playback test needs a running audio output and is skipped when the mixer reports none.

    UnityAudioPlayerServiceCustomSpatialEndToEndTests

    A definition with its own spatial settings played at a position through the whole playback path: the source and the depth cues follow it.

    UnityAudioPlayerServiceDepthCueResetTests

    The service resets the depth cues of a slot on every play, right after the emitter was placed, and keeps the controller's pool in step with its own. Without a controller a play behaves exactly as before. A real shipped clip is played, because the reset sits inside the shared playback core.

    UnityAudioPlayerServicePlacementTests

    PlayMode tests for ApplyPlaybackPlacement(AudioSource, AudioPlayerPlayClipInput).
    The rule is binary: a clip played with a position is 3D and its emitter moves there; a clip played without a position is 2D and its emitter is left in place.

    In this article
    © 2026 Serenity. All Rights Reserved